Class UserRemoteException
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
org.apache.drill.common.exceptions.DrillRuntimeException
org.apache.drill.common.exceptions.UserException
org.apache.drill.common.exceptions.UserRemoteException
- All Implemented Interfaces:
Serializable
Wraps a DrillPBError object so we don't need to rebuilt it multiple times
when sending it to the client. It also gives access to the original exception
className and message.
- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from class org.apache.drill.common.exceptions.UserException
UserException.Builder -
Field Summary
Fields inherited from class org.apache.drill.common.exceptions.UserException
MEMORY_ERROR_MSG -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongenerates the message that will be displayed to the client without the stack trace.getOrCreatePBError(boolean verbose) returns or creates a DrillPBError object corresponding to this user exception.Methods inherited from class org.apache.drill.common.exceptions.UserException
connectionError, connectionError, dataReadError, dataReadError, dataWriteError, dataWriteError, executionError, functionError, functionError, getErrorId, getErrorLocation, getErrorType, getMessage, getOriginalMessage, getVerboseMessage, getVerboseMessage, internalError, internalError, memoryError, memoryError, memoryError, parseError, parseError, permissionError, permissionError, planError, planError, pluginError, rebuild, resourceError, resourceError, schemaChangeError, schemaChangeError, systemError, unspecifiedError, unsupportedError, unsupportedError, validationError, validationErrorMethods inherited from class org.apache.drill.common.exceptions.DrillRuntimeException
checkInterrupted, create, createMethods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Constructor Details
-
Method Details
-
getMessage
Description copied from class:UserExceptiongenerates the message that will be displayed to the client without the stack trace.- Overrides:
getMessagein classUserException- Returns:
- non verbose error message
-
getOrCreatePBError
Description copied from class:UserExceptionreturns or creates a DrillPBError object corresponding to this user exception.- Overrides:
getOrCreatePBErrorin classUserException- Parameters:
verbose- should the error object contain the verbose error message ?- Returns:
- protobuf error object
-