Package com.almis.awe.exception
Class AWException
java.lang.Object
java.lang.Throwable
java.lang.Exception
com.almis.awe.exception.AWException
- All Implemented Interfaces:
Serializable
- Direct Known Subclasses:
AWENotFoundException
,AWEQueryException
,AWESessionException
Specific AWE Exception class
Formatted exception to show a title and a description of the thrown ERROR
- Author:
- Pablo GARCIA - 24/JUN/2010
- See Also:
-
Constructor Summary
ConstructorDescriptionCreates a new instance ofAWException
without detail message.AWException
(String msg) Constructs an instance ofAWException
with the specified detail message.AWException
(String title, String message) Constructs an instance ofAWException
with the specified detail message.AWException
(String tit, String msg, AnswerType typ) Constructs an instance ofAWException
with the specified detail message.AWException
(String tit, String msg, Throwable cause) Constructs an instance ofAWException
with the specified detail message and cause exception.AWException
(String msg, Throwable cause) Constructs an instance ofAWException
with the specified detail message. -
Method Summary
Modifier and TypeMethodDescriptiongetTitle()
Returns the exception titlegetType()
Returns the exception typelog()
Log exception errorvoid
Stores the exception titlevoid
setType
(AnswerType type) Stores the exception typeMethods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Constructor Details
-
AWException
public AWException()Creates a new instance ofAWException
without detail message. -
AWException
Constructs an instance ofAWException
with the specified detail message.- Parameters:
msg
- Detail message.
-
AWException
Constructs an instance ofAWException
with the specified detail message.- Parameters:
msg
- Detail message.cause
- Cause of exception
-
AWException
Constructs an instance ofAWException
with the specified detail message.- Parameters:
title
- Exception titlemessage
- Detail message
-
AWException
Constructs an instance ofAWException
with the specified detail message.- Parameters:
tit
- Exception titlemsg
- Detail messagetyp
- Message type (ERROR, warning)
-
AWException
Constructs an instance ofAWException
with the specified detail message and cause exception.- Parameters:
tit
- Exception titlemsg
- Detail messagecause
- Cause exception
-
-
Method Details
-
getTitle
Returns the exception title- Returns:
- Exception title
-
setTitle
Stores the exception title- Parameters:
title
- Exception title
-
getType
Returns the exception type- Returns:
- Exception type
-
setType
Stores the exception type- Parameters:
type
- Exception type
-
log
Log exception error- Returns:
- this
-