st
Class ApplicationException

java.lang.Object
  |
  +--java.lang.Throwable
        |
        +--java.lang.Exception
              |
              +--st.ApplicationException
All Implemented Interfaces:
java.io.Serializable

public class ApplicationException
extends java.lang.Exception

Exception class that maps codes to messages. Permits many types of errors to be reported without creating extra exception classes.

See Also:
Serialized Form

Constructor Summary
ApplicationException()
           
ApplicationException(int code)
          The constructor method for the exception given an error code.
 
Method Summary
 int getCode()
          Get the error code.
 java.lang.String getMessage()
          Get the error message.
 
Methods inherited from class java.lang.Throwable
fillInStackTrace, getLocalizedMessage, printStackTrace, printStackTrace, printStackTrace, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

ApplicationException

public ApplicationException(int code)
The constructor method for the exception given an error code.
Parameters:
code - the error code

ApplicationException

public ApplicationException()
Method Detail

getMessage

public java.lang.String getMessage()
Get the error message.
Overrides:
getMessage in class java.lang.Throwable
Returns:
the error message

getCode

public int getCode()
Get the error code.
Returns:
the error code


Copyright © 2002 Sun Microsystems Inc. All rights reserved.