ch.panter.li.bi.asn.ber
Class AsnBerException

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by ch.panter.li.bi.asn.AsnException
              extended by ch.panter.li.bi.asn.ber.AsnBerException
All Implemented Interfaces:
Serializable

public class AsnBerException
extends AsnException

The base for ASN.1 BER-encoding related exceptions.

See Also:
Serialized Form

Constructor Summary
AsnBerException(long offset)
          Creates a new instance without message
AsnBerException(long offset, String message)
          Creates a new instance with the given message
AsnBerException(long offset, String message, Throwable cause)
          Creates a new instance with the given message and causing throwable.
AsnBerException(long offset, Throwable cause)
          Creates a new instance without message and with the given causing throwable.
 
Method Summary
 long getOffset()
          Returns the offset in the BER stream where the error was detected.
 
Methods inherited from class java.lang.Throwable
fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

AsnBerException

public AsnBerException(long offset)
Creates a new instance without message

Parameters:
offset - the offset in the BER stream, where the error was detected

AsnBerException

public AsnBerException(long offset,
                       String message)
Creates a new instance with the given message

Parameters:
offset - the offset in the BER stream, where the error was detected
message - the error message

AsnBerException

public AsnBerException(long offset,
                       Throwable cause)
Creates a new instance without message and with the given causing throwable.

Parameters:
offset - the offset in the BER stream, where the error was detected
cause - the original error causing this one

AsnBerException

public AsnBerException(long offset,
                       String message,
                       Throwable cause)
Creates a new instance with the given message and causing throwable.

Parameters:
offset - the offset in the BER stream, where the error was detected
message - the error message
cause - the original error causing this one
Method Detail

getOffset

public long getOffset()
Returns the offset in the BER stream where the error was detected.

Returns:
the offset in the BER stream where the error was detected


Copyright 2007-2007 SourceForge. All Rights Reserved.