| 
 | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Object
  |
  +--java.lang.Throwable
        |
        +--java.lang.Exception
              |
              +--com.resilientedge.util.exception.InfrastructureException
Infrastructure Exception.
This is the base exception for all other exceptions within applications built using the infrastructure, or utility, layer. All public APIs must throw this exception at a minimum, although a subclass of this exception may be thrown where applicable.
When any exception is caught, construct a new InfrastructureException with the caught exception and throw. This allows for consistent catch blocks throughout the application, which may inquire about the nested exception to determine various error-handling logic.
| Constructor Summary | |
| InfrastructureException()Default Constructor with no message or nested exception | |
| InfrastructureException(java.lang.String message)Constructor with no nested exception, but a message | |
| InfrastructureException(java.lang.String message,
                        java.lang.Throwable nestedException)Constructor with a message and nested exception | |
| Method Summary | |
|  java.lang.String | getMessage()Returns the message of this instance, and of the nested exception, if available. | 
|  java.lang.Throwable | getNestedException()Returns the nested exception. | 
|  boolean | hasNestedException()Returns true if there is a nested exception | 
|  void | printStackTrace()Send the stack trace to the given printstream. | 
|  void | printStackTrace(java.io.PrintStream ps)Send the stack trace to the given printstream. | 
|  void | printStackTrace(java.io.PrintWriter pw)Send the stack trace to the given printwriter. | 
| Methods inherited from class java.lang.Throwable | 
| fillInStackTrace, getLocalizedMessage, toString | 
| Methods inherited from class java.lang.Object | 
| clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait | 
| Constructor Detail | 
public InfrastructureException()
public InfrastructureException(java.lang.String message)
message - Parameter Description
public InfrastructureException(java.lang.String message,
                               java.lang.Throwable nestedException)
message -  nestedException - Parameter Description| Method Detail | 
public java.lang.String getMessage()
getMessage in class java.lang.Throwablepublic java.lang.Throwable getNestedException()
public boolean hasNestedException()
public void printStackTrace(java.io.PrintWriter pw)
printStackTrace in class java.lang.Throwablepw - java.io.PrintWriter to send the stack trace topublic void printStackTrace(java.io.PrintStream ps)
printStackTrace in class java.lang.Throwableps - java.io.PrintStream to send the stack trace topublic void printStackTrace()
printStackTrace in class java.lang.Throwable| 
 | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||