Mendix Runtime
Documentation for the Mendix Runtime Environment API
com.mendix.systemwideinterfaces.core.UserException Class Reference
+ Inheritance diagram for com.mendix.systemwideinterfaces.core.UserException:

List of all members.

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 ()

Detailed Description

Use this exception for reporting messages to user. This exception doesn't provide a stacktrace, which makes the creation 10 times faster!


Member Enumeration Documentation

Enumerator:
Security 
DeletePrevention 
DataValidation 
Custom 

Constructor & Destructor Documentation

com.mendix.systemwideinterfaces.core.UserException.UserException ( ExceptionCategory  category,
String  message 
)

Creates new UserException

Parameters:
messagethe exception message.
categorythe exception category.
com.mendix.systemwideinterfaces.core.UserException.UserException ( ExceptionCategory  category,
Throwable  cause 
)

Creates new UserException

Parameters:
causethe exception cause.
categorythe exception category.
com.mendix.systemwideinterfaces.core.UserException.UserException ( ExceptionCategory  category,
String  message,
Throwable  cause 
)

Creates new UserException

Parameters:
messagethe exception message.
causethe exception cause.
categorythe exception category.
com.mendix.systemwideinterfaces.core.UserException.UserException ( IDataValidationFeedback  dvFeedback)

Create a new UserException (data validation)

Parameters:
dvFeedbackthe data validation feedback.

Member Function Documentation

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 ( )
Returns:
the exception category.
IDataValidationFeedback com.mendix.systemwideinterfaces.core.UserException.getDataValidationFeedback ( )
Returns:
dvFeedback
String com.mendix.systemwideinterfaces.core.UserException.toString ( )

Returns data-validation instead of default message in case of ExceptionCategory.DataValidation


The documentation for this class was generated from the following file: