home *** CD-ROM | disk | FTP | other *** search
/ PC World Komputer 1997 May / Pcwk0597.iso / sybase / starbuck / samples.z / DynamoException.java < prev    next >
Text File  |  1996-12-09  |  2KB  |  62 lines

  1. /*
  2.  * DynamoException.java
  3.  *
  4.  *
  5.  * Copyright 1996 Sybase, Inc. All rights reserved.
  6.  */
  7.  
  8. /**
  9.  * <P>The DynamoException class provides information on an error accessing
  10.  * the NetImpact Dynamo web server
  11.  *
  12.  * <P>Each DynamoException provides the following information:
  13.  * <pre>
  14.  *    - a string describing the error. This is the Java Exception message,
  15.  *    and is available with the getMessage() method
  16.  *    - other error values, to be determined
  17.  * </pre>
  18.  */
  19.  
  20. public class DynamoException extends java.lang.Exception 
  21. //******************************************************
  22. {
  23.  
  24.     //-------------------------------------------------------------
  25.     // Constructor
  26.     //-------------------------------------------------------------
  27.     
  28.      /** 
  29.       * Contructs a DynamoException
  30.       * @param reason description of the exception
  31.       */
  32.     
  33.     public DynamoException(String reason)
  34.     //***********************************
  35.     {
  36.         _reason = reason;
  37.     }
  38.  
  39.     //-------------------------------------------------------------
  40.     // Properties
  41.     //-------------------------------------------------------------
  42.  
  43.     /**
  44.      * Returns the error message
  45.      */
  46.      
  47.     public String getMessage() 
  48.     //************************
  49.     {
  50.         return _reason;
  51.     }
  52.     
  53.     //-------------------------------------------------------------
  54.     // Data
  55.     //-------------------------------------------------------------
  56.  
  57.     String  _reason;
  58. }
  59.  
  60.  
  61.  
  62.