org.bouncycastle.asn1
Class ASN1ParsingException
java.lang.Object
|
+--java.lang.Throwable
|
+--java.lang.Exception
|
+--java.lang.RuntimeException
|
+--java.lang.IllegalStateException
|
+--org.bouncycastle.asn1.ASN1ParsingException
- All Implemented Interfaces:
- java.io.Serializable
- public class ASN1ParsingException
- extends java.lang.IllegalStateException
Exception thrown when correctly encoded, but unexpected data is found in a stream while building an object.
- See Also:
- Serialized Form
Constructor Summary |
ASN1ParsingException(java.lang.String message)
Base constructor |
ASN1ParsingException(java.lang.String message,
java.lang.Throwable cause)
Constructor when this exception is due to another one. |
Method Summary |
java.lang.Throwable |
getCause()
Return the underlying cause of this exception, if any. |
Methods inherited from class java.lang.Throwable |
fillInStackTrace, getLocalizedMessage, getMessage, printStackTrace, printStackTrace, printStackTrace, toString |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
ASN1ParsingException
public ASN1ParsingException(java.lang.String message)
- Base constructor
- Parameters:
message
- a message concerning the exception.
ASN1ParsingException
public ASN1ParsingException(java.lang.String message,
java.lang.Throwable cause)
- Constructor when this exception is due to another one.
- Parameters:
message
- a message concerning the exception.cause
- the exception that caused this exception to be thrown.
getCause
public java.lang.Throwable getCause()
- Return the underlying cause of this exception, if any.
- Returns:
- the exception causing this one, null if there isn't one.