Class MultipleAppException
java.lang.Object
java.lang.Throwable
java.lang.Exception
jp.ecuacion.lib.core.exception.checked.AppException
jp.ecuacion.lib.core.exception.checked.MultipleAppException
- All Implemented Interfaces:
Serializable
Conveys multiple SingleAppExceptions at once.
This has a list of SingleAppException inside
and by throwing MultipleAppException multiple
error messages can be shown on screen in web apps.
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionMultipleAppException(List<? extends SingleAppException> list) Constructs a new instance with a list ofAppException.Constructs a new instance withMultipleAppException. -
Method Summary
Modifier and TypeMethodDescriptiongetList()Returns a list ofSingleAppException.Returns list of messages holding exceptions have with default locale.Methods inherited from class Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Constructor Details
-
MultipleAppException
Constructs a new instance with a list ofAppException.- Parameters:
list- a list ofAppException.size()cannot be zero.
-
MultipleAppException
Constructs a new instance withMultipleAppException.- Parameters:
ex-NultipleAppException
-
-
Method Details
-
getMessage
Returns list of messages holding exceptions have with default locale.- Overrides:
getMessagein classThrowable
-
getList
Returns a list ofSingleAppException.- Returns:
- exceptionList
-