Class UserException

All Implemented Interfaces:
Serializable
Direct Known Subclasses:
UserRemoteException

public class UserException extends DrillRuntimeException
Base class for all user exception. The goal is to separate out common error conditions where we can give users useful feedback.

Throwing a user exception will guarantee it's message will be displayed to the user, along with any context information added to the exception at various levels while being sent to the client.

A specific class of user exceptions are system exception. They represent system level errors that don't display any specific error message to the user apart from "A system error has occurred" along with information to retrieve the details of the exception from the logs.

Although system exception should only display a generic message to the user, for now they will display the root error message, until all user errors are properly sent from the server side.

Any thrown exception that is not wrapped inside a user exception will automatically be converted to a system exception before being sent to the client.

See Also: