-
- 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 libessencebe_statusso 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.
-
-
Constructor Summary
Constructors Constructor Description BithumanException(String message, Integer code)BithumanException(String message)
-
Method Summary
Modifier and Type Method Description final IntegergetCode()ThrowablegetCause()StringgetMessage()-
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
-
-