Uses of Class
org.apache.drill.common.exceptions.UserException.Builder
Packages that use UserException.Builder
Package
Description
Various exceptions used in logical, physical and execution contexts.
Handles optional file metadata columns: implicit columns and
partition columns.
-
Uses of UserException.Builder in org.apache.drill.common.exceptions
Methods in org.apache.drill.common.exceptions that return UserException.BuilderModifier and TypeMethodDescriptionUserException.Builder.addContext
(String value) add a string line to the bottom of the contextUserException.Builder.addContext
(String name, double value) add a double value to the bottom of the contextUserException.Builder.addContext
(String name, long value) add a long value to the bottom of the contextUserException.Builder.addContext
(String value, Object... args) add a string line to the bottom of the contextUserException.Builder.addContext
(String name, String value) add a string value to the bottom of the contextUserException.Builder.addContext
(CustomErrorContext context) UserException.Builder.addIdentity
(CoordinationProtos.DrillbitEndpoint endpoint) add DrillbitEndpoint identity to the context.static UserException.Builder
UserException.connectionError()
Creates a new user exception builder.static UserException.Builder
UserException.connectionError
(Throwable cause) Wraps the passed exception inside a connection error.static UserException.Builder
UserException.dataReadError()
Creates a new user exception builder.static UserException.Builder
UserException.dataReadError
(Throwable cause) Wraps the passed exception inside a data read error.static UserException.Builder
UserException.dataWriteError()
Creates a new user exception builder .static UserException.Builder
UserException.dataWriteError
(Throwable cause) Wraps the passed exception inside a data write error.UserException.Builder.errorType
(UserBitShared.DrillPBError.ErrorType errorType) Sets the error type.static UserException.Builder
UserException.executionError
(Throwable cause) Wraps an error that arises from execution due to issues in the query, in the environment and so on -- anything other than "this should never occur" type checks.static UserException.Builder
UserException.functionError()
Creates a new user exception builder .static UserException.Builder
UserException.functionError
(Throwable cause) Wraps the passed exception inside a function error.static UserException.Builder
UserException.internalError()
static UserException.Builder
UserException.internalError
(Throwable cause) Indicates an internal validation failed or similar unexpected error.static UserException.Builder
UserException.memoryError()
Creates a RESOURCE error with a prebuilt message for out of memory exceptionsstatic UserException.Builder
UserException.memoryError
(String format, Object... args) static UserException.Builder
UserException.memoryError
(Throwable cause) Creates a RESOURCE error with a prebuilt message for out of memory exceptionssets or replaces the error message.static UserException.Builder
UserException.parseError()
Creates a new user exception builder .static UserException.Builder
UserException.parseError
(Throwable cause) Wraps the passed exception inside a parse error.static UserException.Builder
UserException.permissionError()
creates a new user exception builder .static UserException.Builder
UserException.permissionError
(Throwable cause) Wraps the passed exception inside a permission error.static UserException.Builder
UserException.planError()
Creates a new user exception builder .static UserException.Builder
Wraps the passed exception inside a plan error.static UserException.Builder
UserException.pluginError
(Throwable cause) Wraps the passed exception inside a plugin error.UserException.Builder.pushContext
(String value) pushes a string value to the top of the contextUserException.Builder.pushContext
(String name, double value) pushes a double value to the top of the contextUserException.Builder.pushContext
(String name, long value) pushes a long value to the top of the contextUserException.Builder.pushContext
(String name, String value) pushes a string value to the top of the contextUserException.rebuild()
static UserException.Builder
UserException.resourceError()
Creates a new user exception builder .static UserException.Builder
UserException.resourceError
(Throwable cause) Wraps the passed exception inside a resource error.static UserException.Builder
UserException.schemaChangeError()
static UserException.Builder
UserException.schemaChangeError
(Throwable cause) Report an unsupported schema change.static UserException.Builder
UserException.systemError
(Throwable cause) Wraps the passed exception inside a system error.static UserException.Builder
UserException.unspecifiedError
(Throwable cause) Indicates an unspecified error: code caught the exception, but does not have visibility into the cause well enough to pick one of the more specific error types.static UserException.Builder
UserException.unsupportedError()
Creates a new user exception builder .static UserException.Builder
UserException.unsupportedError
(Throwable cause) Wraps the passed exception inside a unsupported error.static UserException.Builder
UserException.validationError()
Creates a new user exception builder .static UserException.Builder
UserException.validationError
(Throwable cause) wraps the passed exception inside a validation error.Methods in org.apache.drill.common.exceptions with parameters of type UserException.BuilderModifier and TypeMethodDescriptionvoid
ChildErrorContext.addContext
(UserException.Builder builder) void
CustomErrorContext.addContext
(UserException.Builder builder) void
EmptyErrorContext.addContext
(UserException.Builder builder) -
Uses of UserException.Builder in org.apache.drill.exec.physical.impl.scan.file
Methods in org.apache.drill.exec.physical.impl.scan.file with parameters of type UserException.BuilderModifier and TypeMethodDescriptionvoid
FileScanFramework.FileRowSetContext.addContext
(UserException.Builder builder) -
Uses of UserException.Builder in org.apache.drill.exec.physical.impl.scan.v3.file
Methods in org.apache.drill.exec.physical.impl.scan.v3.file with parameters of type UserException.BuilderModifier and TypeMethodDescriptionvoid
FileSchemaNegotiatorImpl.SplitErrorContext.addContext
(UserException.Builder builder) -
Uses of UserException.Builder in org.apache.drill.exec.store.dfs.easy
Methods in org.apache.drill.exec.store.dfs.easy with parameters of type UserException.BuilderModifier and TypeMethodDescriptionvoid
EasyFileScanBuilder.EvfErrorContext.addContext
(UserException.Builder builder) -
Uses of UserException.Builder in org.apache.drill.exec.store.easy.json
Methods in org.apache.drill.exec.store.easy.json that return UserException.BuilderModifier and TypeMethodDescriptionJsonProcessor.getExceptionWithContext
(Throwable exception, String message) JsonProcessor.getExceptionWithContext
(UserException.Builder exceptionBuilder, String message) Methods in org.apache.drill.exec.store.easy.json with parameters of type UserException.BuilderModifier and TypeMethodDescriptionJsonProcessor.getExceptionWithContext
(UserException.Builder exceptionBuilder, String message) -
Uses of UserException.Builder in org.apache.drill.exec.store.easy.json.loader
Methods in org.apache.drill.exec.store.easy.json.loader with parameters of type UserException.BuilderModifier and TypeMethodDescriptionprotected UserException
JsonLoaderImpl.buildError
(UserException.Builder builder) JsonLoaderImpl.buildError
(ColumnMetadata schema, UserException.Builder builder) -
Uses of UserException.Builder in org.apache.drill.exec.store.easy.json.reader
Methods in org.apache.drill.exec.store.easy.json.reader that return UserException.BuilderModifier and TypeMethodDescriptionBaseJsonProcessor.getExceptionWithContext
(Throwable e, String message) BaseJsonProcessor.getExceptionWithContext
(UserException.Builder builder, String message) Methods in org.apache.drill.exec.store.easy.json.reader with parameters of type UserException.BuilderModifier and TypeMethodDescriptionBaseJsonProcessor.getExceptionWithContext
(UserException.Builder builder, String message)