Mendix Runtime
Documentation for the Mendix Runtime Environment API
|
Public Types | |
enum | ExceptionCategory { Security, DeletePrevention, DataValidation, Custom } |
Public Member Functions | |
UserException (ExceptionCategory category, String message) | |
UserException (ExceptionCategory category, Throwable cause) | |
UserException (ExceptionCategory category, String message, Throwable cause) | |
UserException (IDataValidationFeedback dvFeedback) | |
ExceptionCategory | getCategory () |
IDataValidationFeedback | getDataValidationFeedback () |
synchronized Throwable | fillInStackTrace () |
String | toString () |
Use this exception for reporting messages to user. This exception doesn't provide a stacktrace, which makes the creation 10 times faster!
com.mendix.systemwideinterfaces.core.UserException.UserException | ( | ExceptionCategory | category, |
String | message | ||
) |
Creates new UserException
message | the exception message. |
category | the exception category. |
com.mendix.systemwideinterfaces.core.UserException.UserException | ( | ExceptionCategory | category, |
Throwable | cause | ||
) |
Creates new UserException
cause | the exception cause. |
category | the exception category. |
com.mendix.systemwideinterfaces.core.UserException.UserException | ( | ExceptionCategory | category, |
String | message, | ||
Throwable | cause | ||
) |
Creates new UserException
message | the exception message. |
cause | the exception cause. |
category | the exception category. |
com.mendix.systemwideinterfaces.core.UserException.UserException | ( | IDataValidationFeedback | dvFeedback | ) |
Create a new UserException (data validation)
dvFeedback | the data validation feedback. |
synchronized Throwable com.mendix.systemwideinterfaces.core.UserException.fillInStackTrace | ( | ) |
Prevents this exception from generating a stack trace. Makes the creation of this exception 10 times faster!
ExceptionCategory com.mendix.systemwideinterfaces.core.UserException.getCategory | ( | ) |
IDataValidationFeedback com.mendix.systemwideinterfaces.core.UserException.getDataValidationFeedback | ( | ) |
String com.mendix.systemwideinterfaces.core.UserException.toString | ( | ) |
Returns data-validation instead of default message in case of ExceptionCategory.DataValidation