Package 

Class SessionException

  • All Implemented Interfaces:
    java.io.Serializable

    
    public final class SessionException
    extends RuntimeException
                        

    Thrown by SessionBridge when the underlying session crate returns an error.

    The structured fields mirror the Rust ClientError discriminants — consumers can dispatch on kind (one of SessionBridge.ERROR_*) for typed handling, or read message / code for display.

    ABI-locked constructor signature. The Rust JNI bridge (session/src/jni_bridge.rs) instantiates this class via reflection looking up (IILjava/lang/String;Ljava/lang/String;)V. Do not change the parameter order or types.

    • Method Summary

      Modifier and Type Method Description
      final Integer getKind() One of SessionBridge.ERROR_NOT_INITIALIZED etc.
      final Integer getStatusCode() HTTP status when applicable (ERROR_HTTP / ERROR_SERVER_UNAVAILABLE); 0 otherwise.
      final String getCode() Machine-readable code (e.g.
      Throwable getCause()
      String getMessage()
      • Methods inherited from class java.lang.Exception

        addSuppressed, fillInStackTrace, getLocalizedMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait