Package io.tiledb.java.api
Class ContextCallback
- java.lang.Object
-
- io.tiledb.java.api.ContextCallback
-
public class ContextCallback extends java.lang.Object
Java Callback class used to throw exceptions on native method errors.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 Summary
Constructors Constructor Description ContextCallback()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
call(java.lang.String msg)
The default error handler callback.
-
-
-
Method Detail
-
call
public void call(java.lang.String msg) throws TileDBError
The default error handler callback.- Parameters:
msg
- Error message from native tiledb (JNI) operation.- Throws:
TileDBError
- A TileDB exception
-
-