org.jcoderz.commons
Class AssertionFailedException

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by java.lang.RuntimeException
              extended by org.jcoderz.commons.BaseRuntimeException
                  extended by org.jcoderz.commons.AssertionFailedException
All Implemented Interfaces:
Serializable, Loggable

public class AssertionFailedException
extends BaseRuntimeException

Assertion failed. A condition is tested and found to be false. Message: {MESSAGE}. This exception encapsulates the log message RteLogMessage.ASSERTION_FAILED.

Author:
generated
See Also:
Serialized Form

Constructor Summary
protected AssertionFailedException(RteLogMessage messageInfo)
          Constructor getting an log message info.
protected AssertionFailedException(RteLogMessage messageInfo, Throwable cause)
          Constructor getting an log message info and a root exception.
  AssertionFailedException(String message)
          Constructs a assertion failed exception with a cause.
  AssertionFailedException(String message, Throwable cause)
          Constructs a assertion failed exception with a cause.
 
Method Summary
 String valueOfMessage()
          Returns the value of the parameter message.
 
Methods inherited from class org.jcoderz.commons.BaseRuntimeException
addParameter, getCause, getEventTime, getInstanceId, getLogMessageInfo, getMessage, getNodeId, getParameter, getParameterNames, getSourceClass, getSourceMethod, getThreadId, getThreadName, getTrackingNumber, initCause, log, logCreation, toDetailedString, toString
 
Methods inherited from class java.lang.Throwable
fillInStackTrace, getLocalizedMessage, getStackTrace, printStackTrace, printStackTrace, printStackTrace, setStackTrace
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

AssertionFailedException

public AssertionFailedException(String message,
                                Throwable cause)
Constructs a assertion failed exception with a cause.

Parameters:
message - The message used in the message.
cause - the cause of this exception.

AssertionFailedException

public AssertionFailedException(String message)
Constructs a assertion failed exception with a cause.

Parameters:
message - The message used in the message.

AssertionFailedException

protected AssertionFailedException(RteLogMessage messageInfo)
Constructor getting an log message info. This constructor is for generated exceptions internal use only.

Parameters:
messageInfo - the log message info for this exception

AssertionFailedException

protected AssertionFailedException(RteLogMessage messageInfo,
                                   Throwable cause)
Constructor getting an log message info and a root exception. This constructor is for generated exceptions internal use only.

Parameters:
messageInfo - the log message info for this exception
cause - the problem that caused this exception to be thrown
Method Detail

valueOfMessage

public String valueOfMessage()
Returns the value of the parameter message.

Returns:
the value of the parameter message.


Copyright 2007 The jCoderZ Project.