|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjava.lang.Throwable
java.lang.Exception
org.foray.core.FOrayException
public class FOrayException
Exception thrown when FOray has a problem.
Constructor Summary | |
---|---|
FOrayException(String message)
Create a new instance with a message. |
|
FOrayException(String message,
String contextMessage)
Create a new instance with a message and a context message. |
|
FOrayException(String message,
Throwable thrown)
Create a new instance wrapping another thrown item and providing a message. |
|
FOrayException(String message,
Throwable thrown,
String contextMessage)
Create a new instance wrapping another thrown item and providing a message and a context message. |
|
FOrayException(Throwable thrown)
Create a new instance wrapping another thrown item. |
|
FOrayException(Throwable thrown,
String contextMessage)
Create a new instance wrapping another thrown item and providing a context message. |
Method Summary | |
---|---|
String |
getMessage()
|
boolean |
isContextSet()
Indicates whether a context message exists for this exception. |
void |
setContextMessage(String contextMessage)
Sets the context message for this exception. |
Methods inherited from class java.lang.Throwable |
---|
fillInStackTrace, getCause, getLocalizedMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public FOrayException(String message)
message
- A message describing the nature of the exception.public FOrayException(String message, String contextMessage)
message
- A message describing the nature of the exception.contextMessage
- A message containing the location of the thrown
exception.public FOrayException(Throwable thrown)
thrown
- The thrown item to be wrapped.public FOrayException(Throwable thrown, String contextMessage)
thrown
- The thrown item to be wrapped.contextMessage
- A message containing the location of the thrown
exception.public FOrayException(String message, Throwable thrown)
thrown
- The thrown item to be wrapped.message
- A message describing the nature of the exception.public FOrayException(String message, Throwable thrown, String contextMessage)
thrown
- The thrown item to be wrapped.message
- A message describing the nature of the exception.contextMessage
- A message containing the location of the thrown
exception.Method Detail |
---|
public void setContextMessage(String contextMessage)
contextMessage
- The new context message for this exception.public boolean isContextSet()
public String getMessage()
getMessage
in class Throwable
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |