org.jtheque.core.managers.error
Class JThequeError

java.lang.Object
  extended by org.jtheque.core.managers.error.JThequeError
Direct Known Subclasses:
InternationalizedError

public class JThequeError
extends java.lang.Object

An error.

Author:
Baptiste Wicht

Constructor Summary
JThequeError(java.lang.Throwable exception)
          Construct a new Error from an existing exception.
JThequeError(java.lang.Throwable exception, java.lang.String message)
          Construct a new Error from an existing exception with a specific message.
 
Method Summary
 java.lang.String getDetails()
          Return the details of the error.
 java.lang.Throwable getException()
          Return the exception of the error.
 java.lang.String getMessage()
          Return the message of the error.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

JThequeError

public JThequeError(java.lang.Throwable exception)
Construct a new Error from an existing exception. The message of the error will be the message of the exception.

Parameters:
exception - The existing exception.

JThequeError

public JThequeError(java.lang.Throwable exception,
                    java.lang.String message)
Construct a new Error from an existing exception with a specific message.

Parameters:
exception - The exception to encapsulate in the error.
message - The message.
Method Detail

getMessage

public java.lang.String getMessage()
Return the message of the error.

Returns:
The message of the error.

getException

public final java.lang.Throwable getException()
Return the exception of the error.

Returns:
The exception who cause this error.

getDetails

public java.lang.String getDetails()
Return the details of the error.

Returns:
The details of the error.


Copyright © 2009 JTheque. All Rights Reserved.