Class AppException
java.lang.Object
java.lang.Throwable
java.lang.Exception
jp.ecuacion.lib.core.exception.checked.AppException
- All Implemented Interfaces:
Serializable
- Direct Known Subclasses:
MultipleAppException, SingleAppException
Is an abstract exception class describing an occurrence of a validation error in ecuacion apps.
Let us call a validation of data executed by an app an "app-validation".
AppException is created and thrown
when the result of an app-validation is not okay.
App-validations are classified into two kinds as follows.
- input validation: the validation for each single input data, like "not empty", "minimum value", ...
- business logic validation: the validation from business requirements, like "selective not empty", "the input value must be one of values in some column of some table in the database ", ...
ValidationAppException covers the former,
and BizLogicAppException the latter.
Both of them are the child of SingleAppException.
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionConstructs a new instance.AppException(String message) Constructs a new instance withmessage. -
Method Summary
Methods inherited from class Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Constructor Details
-
AppException
public AppException()Constructs a new instance. -
AppException
Constructs a new instance withmessage.- Parameters:
message- message
-