![JAR search and dependency download from the Maven repository](/logo.png)
org.bouncycastle.asn1.ASN1ParsingException Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of bc-fips-debug Show documentation
Show all versions of bc-fips-debug Show documentation
The FIPS 140-2 Bouncy Castle Crypto package is a Java implementation of cryptographic algorithms certified to FIPS 140-2 level 1. This jar contains the debug version JCE provider and low-level API for the BC-FJA version 1.0.2.3, FIPS Certificate #3514. Please note the debug jar is not certified.
/***************************************************************/
/****** DO NOT EDIT THIS CLASS bc-java SOURCE FILE ******/
/***************************************************************/
package org.bouncycastle.asn1;
/**
* Exception thrown when correctly encoded, but unexpected data is found in a stream while building an object.
*/
public class ASN1ParsingException
extends IllegalStateException
{
private Throwable cause;
/**
* Base constructor
*
* @param message a message concerning the exception.
*/
public ASN1ParsingException(String message)
{
super(message);
}
/**
* Constructor when this exception is due to another one.
*
* @param message a message concerning the exception.
* @param cause the exception that caused this exception to be thrown.
*/
public ASN1ParsingException(String message, Throwable cause)
{
super(message);
this.cause = cause;
}
/**
* Return the underlying cause of this exception, if any.
*
* @return the exception causing this one, null if there isn't one.
*/
public Throwable getCause()
{
return cause;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy