Class UserException
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
com.mendix.systemwideinterfaces.MendixRuntimeException
com.mendix.systemwideinterfaces.core.UserException
- All Implemented Interfaces:
Serializable
- Direct Known Subclasses:
AuthenticationRuntimeException
Represents an exception for reporting messages to user.
This exception doesn't provide a stacktrace, which makes its creation 10 times faster!
- See Also:
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic enum
Defines the available exception categories. -
Constructor Summary
ConstructorDescriptionUserException
(DataValidationInfo dvInfo) Create a new UserException (data validation).UserException
(UserException.ExceptionCategory category, String message) Creates a new user exception with the specified message and category.UserException
(UserException.ExceptionCategory category, String message, Throwable cause) Creates a new user exception with the specified message, cause and category.UserException
(UserException.ExceptionCategory category, Throwable cause) Creates a new user exception with the specified cause and category. -
Method Summary
Modifier and TypeMethodDescriptionPrevents this exception from generating a stack trace.Returns the exception category.Returns data validation info, containing validation errors.toString()
Returns ether the exception message, or data validation errors if they are present.Methods inherited from class java.lang.Throwable
addSuppressed, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace
-
Constructor Details
-
UserException
Creates a new user exception with the specified message and category.- Parameters:
message
- the exception messagecategory
- the exception category
-
UserException
Creates a new user exception with the specified cause and category.- Parameters:
cause
- the exception that caused this exceptioncategory
- the exception category
-
UserException
Creates a new user exception with the specified message, cause and category.- Parameters:
message
- the exception messagecause
- the exception that caused this exceptioncategory
- the exception category
-
UserException
Create a new UserException (data validation).- Parameters:
dvInfo
- the data validation info.
-
-
Method Details
-
getCategory
Returns the exception category.- Returns:
- the category
-
getDataValidationFeedback
Returns data validation info, containing validation errors.- Returns:
- the data validation info
-
fillInStackTrace
Prevents this exception from generating a stack trace. Makes the creation of this exception 10 times faster!- Overrides:
fillInStackTrace
in classThrowable
-
toString
Returns ether the exception message, or data validation errors if they are present.
-