java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
org.seasar.doma.DomaException
- All Implemented Interfaces:
Serializable
- Direct Known Subclasses:
DomaIllegalArgumentException,DomaNullPointerException,ExpressionException,JdbcException,ScalarException
The root exception in the Doma framework.
All exceptions thrown by the Doma framework extend this class.
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected final Objectthe message argumentsprotected final MessageResourcethe message resource -
Constructor Summary
ConstructorsConstructorDescriptionDomaException(MessageResource messageResource, Object... args) Constructs an instance.DomaException(MessageResource messageResource, Throwable cause, Object... args) Constructs an instance with a cause. -
Method Summary
Modifier and TypeMethodDescriptiongetArgs()Returns the message arguments.Returns the message resource.Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Field Details
-
messageResource
the message resource -
args
the message arguments
-
-
Constructor Details
-
DomaException
Constructs an instance.- Parameters:
messageResource- the message resourceargs- the message arguments
-
DomaException
Constructs an instance with a cause.- Parameters:
messageResource- the message resourcecause- the cause error or exceptionargs- the message arguments
-
-
Method Details
-
getMessageResource
Returns the message resource.- Returns:
- the message resource
-
getArgs
Returns the message arguments.- Returns:
- the message arguments
-