public interface CustomErrorContext
In some cases, such as file scans within a scan operator, there can be multiple levels of context. A format plugin, say, can describe the plugin and any interesting options. Then, a file scan can create a child context that adds things like file name, split offset, etc.
If this proves useful elsewhere, it can be moved into the same package as UserError, and a new addContext() method added to the UserException.Builder to make the error context easier to use.
Modifier and Type | Method and Description |
---|---|
void |
addContext(UserException.Builder builder) |
void addContext(UserException.Builder builder)
Copyright © 1970 The Apache Software Foundation. All rights reserved.