its.backbone.frame
Class BadMagicException

java.lang.Object
  extended byjava.lang.Throwable
      extended byjava.lang.Exception
          extended byits.backbone.frame.ItsException
              extended byits.backbone.frame.BadMagicException
All Implemented Interfaces:
java.io.Serializable

public class BadMagicException
extends ItsException

Thrown when constructing or reading an ITS frame if the magic number in the frame header is incorrect. The correct magic number is 0xBEADCAFE, also known as its.backbone.frame.ItsFrame.MAGIC_NUMBER.

Version:
$Id: BadMagicException.java,v 1.6 1998/02/13 21:39:44 kint Exp $
Author:
Rick Kint
See Also:
Serialized Form

Field Summary
 
Fields inherited from class its.backbone.frame.ItsException
valueSet
 
Constructor Summary
BadMagicException(int value)
          Constructs a BadMagicException
 
Method Summary
 int getValue()
          Returns the bad type value
 java.lang.String toString()
          Returns a printable string
 
Methods inherited from class java.lang.Throwable
fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

BadMagicException

public BadMagicException(int value)
Constructs a BadMagicException

Parameters:
value - the value received
Method Detail

toString

public java.lang.String toString()
Returns a printable string

Overrides:
toString in class ItsException

getValue

public int getValue()
Returns the bad type value

Overrides:
getValue in class ItsException