Class SingleAppException
java.lang.Object
java.lang.Throwable
java.lang.Exception
jp.ecuacion.lib.core.exception.checked.AppException
jp.ecuacion.lib.core.exception.checked.SingleAppException
- All Implemented Interfaces:
Serializable
- Direct Known Subclasses:
BizLogicAppException, ValidationAppException
Is an abstract class describing an occurrence of a single validation error.
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionConstructs a new instance.SingleAppException(String message) Constructs a new instance withmessage. -
Method Summary
Modifier and TypeMethodDescriptionabstract String[]Provides the location of an item at which this error occurred.Methods inherited from class Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Constructor Details
-
SingleAppException
public SingleAppException()Constructs a new instance. -
SingleAppException
Constructs a new instance withmessage.- Parameters:
message- message
-
-
Method Details
-
getItemPropertyPaths
Provides the location of an item at which this error occurred.Its data-type is an array because although standard jakarta validation (like
@NotEmptyhas only one property path, but BizLogicAppException which describes an error of some relation between multiple items may have multiple property paths.- Returns:
- an array of propertyPath
-