com.sssw.rt.util
Class AgoApplicationException
java.lang.Object
|
+--java.lang.Throwable
|
+--java.lang.Exception
|
+--java.lang.RuntimeException
|
+--com.sssw.rt.util.AgoApplicationException
- All Implemented Interfaces:
- AgiParentedException, Serializable
- Direct Known Subclasses:
- AgoUnsupportedOperationException, ComException
- public class AgoApplicationException
- extends RuntimeException
- implements AgiParentedException
The class of declared exceptions that are thrown when an error
occurs in the application. Typically, this
signifies either a programmer error or that part of the
application is out of sync with another part, for example, a
form with a table design.
This exception does not have to be caught.
- See Also:
- Serialized Form
Method Summary |
String |
getMessage()
Returns the detail message of exception e or null if this exception
did not have a detailed message. |
String |
getMessage(Locale locale)
Returns the detail message of exception e or null if this exception
did not have a detailed message. |
AgoApplicationException
public AgoApplicationException(Throwable parent,
String message)
- Creates an AgoException with a message and a parent exception.
- Parameters:
parent
- the parent exception for this exception.
The parent exception along with its message text can later be accessed via this exception.message
- the exception detail message.- Example:
throw new AgoApplicationException (e, "Unexpected result from method call.");
- See Also:
AgoException.getParentException(Throwable)
,
AgoException.getExceptionMessage(Throwable)
,
AgoException.getMessage()
getMessage
public String getMessage()
- Returns the detail message of exception
e
or null if this exception
did not have a detailed message.
- Overrides:
- getMessage in class Throwable
- Example:
String msg = e.getMessage();
getMessage
public String getMessage(Locale locale)
- Returns the detail message of exception
e
or null if this exception
did not have a detailed message.
- Specified by:
- getMessage in interface AgiParentedException
- Parameters:
locale
- the locale to use when retrieving the message.- Example:
String msg = e.getMessage (Locale.getDefault());
- See Also:
AgoException.getExceptionMessage(Throwable, Locale)