Class ContextCallback

  • Direct Known Subclasses:
    Error.CustomCallback

    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.
      • 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.
        Parameters:
        msg - Error message from native tiledb (JNI) operation.
        Throws:
        TileDBError - A TileDB exception