jp.bitmeister.asn1.exception
Class ASN1Exception

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by jp.bitmeister.asn1.exception.ASN1Exception
All Implemented Interfaces:
java.io.Serializable
Direct Known Subclasses:
ASN1DecodingException, ASN1EncodingException

public class ASN1Exception
extends java.lang.Exception

The general exception that related to this library and should be caught.

Author:
WATANABE, Jun.
See Also:
Serialized Form

Field Summary
protected  jp.bitmeister.asn1.exception.DetailedMessage message
           
 
Constructor Summary
ASN1Exception()
           
 
Method Summary
 java.lang.Throwable getCause()
           
 java.lang.String getMessage()
           
 void setMessage(java.lang.String description, java.lang.Throwable cause, java.lang.Class<? extends ASN1Type> type, java.lang.String element, ASN1Type data)
          Set detailed message of this exception.
 
Methods inherited from class java.lang.Throwable
fillInStackTrace, getLocalizedMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

message

protected jp.bitmeister.asn1.exception.DetailedMessage message
Constructor Detail

ASN1Exception

public ASN1Exception()
Method Detail

setMessage

public void setMessage(java.lang.String description,
                       java.lang.Throwable cause,
                       java.lang.Class<? extends ASN1Type> type,
                       java.lang.String element,
                       ASN1Type data)
Set detailed message of this exception.

Parameters:
description - The description of this exception.
cause - The cause exception of this exception.
type - The ASN.1 type related to this exception.
element - The element name related to this exception.
data - The ASN.1 data related to this exception.

getMessage

public java.lang.String getMessage()
Overrides:
getMessage in class java.lang.Throwable

getCause

public java.lang.Throwable getCause()
Overrides:
getCause in class java.lang.Throwable


Copyright © 2012 BitMeister Inc. All Rights Reserved.