com.pushtotest.tool
Class NoSuchClassException

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by org.apache.commons.lang.exception.NestableException
              extended by com.pushtotest.tool.ToolException
                  extended by com.pushtotest.tool.NoSuchClassException
All Implemented Interfaces:
java.io.Serializable, org.apache.commons.lang.exception.Nestable

public class NoSuchClassException
extends ToolException

This is an exception that is throw if a search for an Object does not find a class that it can instantiate and return to the user. I could have used ClassNotFoundException, but I decided I wanted to inherit from the ToolException for everything that I could to give someone using Tool a lot more flexibility.

See Also:
Serialized Form

Field Summary
protected static java.lang.String DEFAULT_ERROR
          The key for the default error message
 
Fields inherited from class org.apache.commons.lang.exception.NestableException
delegate
 
Constructor Summary
NoSuchClassException()
          This is the default Constructor for an NoSuchClassException.
NoSuchClassException(java.lang.String message)
          This is the Constructor for an NoSuchClassException that takes a String message to pass.
NoSuchClassException(java.lang.String message, java.lang.Throwable cause)
          Construct a new NoSuchClassException.
NoSuchClassException(java.lang.Throwable cause)
          Construct a new NoSuchClassException.
 
Method Summary
 
Methods inherited from class com.pushtotest.tool.ToolException
getKey, setKey
 
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

DEFAULT_ERROR

protected static java.lang.String DEFAULT_ERROR
The key for the default error message

Constructor Detail

NoSuchClassException

public NoSuchClassException()
This is the default Constructor for an NoSuchClassException. It creates a new Exception without setting a message.


NoSuchClassException

public NoSuchClassException(java.lang.String message)
This is the Constructor for an NoSuchClassException that takes a String message to pass.

Parameters:
message - An informative message to say why this exception is being thrown and who's throwing it.

NoSuchClassException

public NoSuchClassException(java.lang.String message,
                            java.lang.Throwable cause)
Construct a new NoSuchClassException.

Parameters:
message - The message to say what went wrong.
cause - The exception that caused this to be thrown.

NoSuchClassException

public NoSuchClassException(java.lang.Throwable cause)
Construct a new NoSuchClassException.

Parameters:
cause - The exception that caused this to be thrown.