public class ContextCallback
extends java.lang.Object
Example:
Context ctx = new Context();
// Set a custom error handler:
ctx.setErrorHandler(new MyContextCallback());
//Context custom callback class example
private static class MyContextCallback extends ContextCallback {
{@literal @Override}
public void call(String msg) throws TileDBError {
System.out.println("Callback error message: "+msg);
}
}
Constructor and Description |
---|
ContextCallback() |
Modifier and Type | Method and Description |
---|---|
void |
call(java.lang.String msg)
The default error handler callback.
|
public void call(java.lang.String msg) throws TileDBError
msg
- Error message from native tiledb (JNI) operation.TileDBError
- A TileDB exception