Class ContextCallback

  • Direct Known Subclasses:

    public class ContextCallback
    extends java.lang.Object
    Java Callback class used to throw exceptions on native method errors.


     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

      Constructor Description
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void call​(java.lang.String msg)
      The default error handler callback.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • ContextCallback

        public ContextCallback()
    • Method Detail

      • call

        public void call​(java.lang.String msg)
                  throws TileDBError
        The default error handler callback.
        msg - Error message from native tiledb (JNI) operation.
        TileDBError - A TileDB exception