public final class CryptoJniException extends RuntimeException
Modifier and Type | Method and Description |
---|---|
static CryptoJniException |
from(JNIError error)
Create a new CryptoJniException from the
JNIError . |
String |
getErrorMessage()
The error message returned from the JNI.
|
JNIErrorType |
getErrorType()
The type of the error.
|
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
public static CryptoJniException from(JNIError error)
JNIError
.error
- JNIError
returned from the rust layer.CryptoJniException
matching the JNIError
.public JNIErrorType getErrorType()
public String getErrorMessage()
Copyright © 2025. All rights reserved.