home *** CD-ROM | disk | FTP | other *** search
/ Chip 1997 October / Chip_1997-10_cd.bin / tema / sybase / powerj / template.z / WebServiceException.java < prev   
Text File  |  1996-12-09  |  2KB  |  65 lines

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