Package mc.core.system.util.exception
Class ApplicationException
java.lang.Object
java.lang.Throwable
java.lang.Exception
mc.core.system.util.exception.ApplicationException
- All Implemented Interfaces:
Serializable
- Direct Known Subclasses:
EntityNotFoundException,NotUniqueResultException,UserException
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionApplicationException(Object... args) ApplicationException(String message, Object... args) ApplicationException(String message, Throwable cause, Object... args) ApplicationException(Throwable cause, Object... args) -
Method Summary
Modifier and TypeMethodDescriptionObject[]getArgs()getLocalizedMessage(mc.core.system.util.labels.Labels labels, Locale locale) voidlog(boolean log) booleanshould this exception be loggedMethods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Constructor Details
-
ApplicationException
-
ApplicationException
-
ApplicationException
-
ApplicationException
-
-
Method Details
-
getMessage
- Overrides:
getMessagein classThrowable
-
getLocalizedMessage
-
getArgs
-
shouldLog
public boolean shouldLog()should this exception be logged- Returns:
- true or false
-
log
public void log(boolean log)
-