org.bcos.web3j.crypto.sm2.crypto.CryptoException Maven / Gradle / Ivy
package org.bcos.web3j.crypto.sm2.crypto;
/**
* the foundation class for the hard exceptions thrown by the crypto packages.
*/
public class CryptoException extends Exception {
private static final long serialVersionUID = -5478692243351474439L;
private Throwable cause;
/**
* base constructor.
*/
public CryptoException() {
}
/**
* create a CryptoException with the given message.
*
* @param message
* the message to be carried with the exception.
*/
public CryptoException(String message) {
super(message);
}
/**
* Create a CryptoException with the given message and underlying cause.
*
* @param message
* message describing exception.
* @param cause
* the throwable that was the underlying cause.
*/
public CryptoException(String message, Throwable cause) {
super(message);
this.cause = cause;
}
public Throwable getCause() {
return cause;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy