|
||||||||||
| 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.apache.commons.lang.exception.NestableException
com.pushtotest.tool.ToolException
public class ToolException
This is the base exception for everything in Tool so that there is an easy way to group all of the Tool Exceptions together.
| Field Summary | |
|---|---|
protected static java.lang.String |
DEFAULT_ERROR
Key for the default error message |
| Fields inherited from class org.apache.commons.lang.exception.NestableException |
|---|
delegate |
| Constructor Summary | |
|---|---|
ToolException()
Default constructor. |
|
ToolException(java.lang.String message)
Construct a new ToolException. |
|
ToolException(java.lang.String message,
java.lang.Throwable cause)
Construct a new ToolException. |
|
ToolException(java.lang.Throwable cause)
Construct a new ToolException. |
|
| Method Summary | |
|---|---|
java.lang.String |
getKey()
Returns a key for a User viewable message. |
void |
setKey(java.lang.String key)
Sets a key for a User viewable message. |
| Methods inherited from class org.apache.commons.lang.exception.NestableException |
|---|
getCause, getMessage, getMessage, getMessages, getThrowable, getThrowableCount, getThrowables, indexOfThrowable, indexOfThrowable, printPartialStackTrace, printStackTrace, printStackTrace, printStackTrace |
| Methods inherited from class java.lang.Throwable |
|---|
fillInStackTrace, getLocalizedMessage, getStackTrace, initCause, setStackTrace, toString |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
protected static java.lang.String DEFAULT_ERROR
| Constructor Detail |
|---|
public ToolException()
public ToolException(java.lang.String message)
message - The message to say what went wrong.
public ToolException(java.lang.String message,
java.lang.Throwable cause)
message - The message to say what went wrong.cause - The exception that caused this to be thrown.public ToolException(java.lang.Throwable cause)
cause - The exception that caused this to be thrown.| Method Detail |
|---|
public void setKey(java.lang.String key)
key - The key to look up in the proper locale file to show to the
user.public java.lang.String getKey()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||