Package cn.gmkit.sm9
Class SM9Exception
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
cn.gmkit.sm9.SM9Exception
- All Implemented Interfaces:
Serializable
- Direct Known Subclasses:
SM9UnsupportedPlatformException
SM9 模块运行时异常。
SM9 通过 JNI 桥接 GmSSL native 实现,参数错误、native 库加载失败、签名/验签失败、 加解密失败以及密钥导入导出失败等场景都会统一抛出该异常,便于业务侧集中兜底。
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionSM9Exception(String message) 使用错误消息创建异常。SM9Exception(String message, Throwable cause) 使用错误消息和根因创建异常。 -
Method Summary
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Constructor Details
-
SM9Exception
使用错误消息创建异常。- Parameters:
message- 错误消息
-
SM9Exception
使用错误消息和根因创建异常。- Parameters:
message- 错误消息cause- 根因异常
-