java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
org.seasar.doma.DomaException
org.seasar.doma.DomaIllegalArgumentException
- All Implemented Interfaces:
Serializable
Thrown to indicate that an argument does not meet the preconditions required by a method.
This exception class makes it easy to distinguish between issues caused by Doma's specifications and actual bugs in the Doma framework.
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected final Stringthe detail messageprotected final Stringthe parameter name that corresponds to the illegal argumentFields inherited from class org.seasar.doma.DomaException
args, messageResource -
Constructor Summary
ConstructorsConstructorDescriptionDomaIllegalArgumentException(String parameterName, String description) Constructs an instance. -
Method Summary
Modifier and TypeMethodDescriptionReturns the detail message.Returns the parameter name that corresponds to the illegal argument.Methods inherited from class org.seasar.doma.DomaException
getArgs, getMessageResourceMethods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Field Details
-
parameterName
the parameter name that corresponds to the illegal argument -
description
the detail message
-
-
Constructor Details
-
DomaIllegalArgumentException
Constructs an instance.- Parameters:
parameterName- the parameter namedescription- the detail message
-
-
Method Details
-
getParameterName
Returns the parameter name that corresponds to the illegal argument.- Returns:
- the parameter name
-
getDescription
Returns the detail message.- Returns:
- the detail message
-