Package 

Class BithumanException

  • All Implemented Interfaces:
    java.io.Serializable

    
    public final class BithumanException
    extends RuntimeException
                        

    Thrown for any non-OK status returned by the underlying C ABI. The message carries the thread-local be_last_error_message() text from the failed call, and code carries the underlying libessence be_status so callers can react to specific failures (see BithumanError) instead of string-matching.

    code is BithumanError.UNKNOWN only when the exception was constructed without a status (e.g. a pure-Kotlin guard); every failure thrown across the JNI boundary carries the real be_status.

    The single-argument constructor is retained (via @JvmOverloads) for source and binary compatibility.

    • Method Summary

      Modifier and Type Method Description
      final Integer getCode()
      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