de.flexiprovider.common.exceptions
Class InvalidFormatException

java.lang.Object
  |
  +--java.lang.Throwable
        |
        +--java.lang.Exception
              |
              +--java.lang.RuntimeException
                    |
                    +--de.flexiprovider.common.exceptions.ECException
                          |
                          +--de.flexiprovider.common.exceptions.InvalidFormatException
All Implemented Interfaces:
java.io.Serializable

public class InvalidFormatException
extends ECException

This exception is thrown, if a point is stored in a byte array in a wrong format. For a compressed point the first field has to hold a 2 or 3, for an uncompressed form a 4 and for an hybrid form a 6 or 7.

Author:
Birgit Henhapl
See Also:
Point, PointGFP, Serialized Form

Constructor Summary
InvalidFormatException()
          Constructs an InvalidFormatException with no detail message.
InvalidFormatException(byte type)
          Constructs an InvalidFormatException with detailed message.
InvalidFormatException(java.lang.String msg)
          Constructs an InvalidFormatException with a detail message.
 
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
 

Constructor Detail

InvalidFormatException

public InvalidFormatException()
Constructs an InvalidFormatException with no detail message. A detail message is a String that describes this particular exception.

InvalidFormatException

public InvalidFormatException(java.lang.String msg)
Constructs an InvalidFormatException with a detail message. A detail message is a String that describes this particular exception.
Parameters:
msg - the detail message

InvalidFormatException

public InvalidFormatException(byte type)
Constructs an InvalidFormatException with detailed message. It tells about the content of the first byte and repeats the rules to use the byte array representation.
Parameters:
type - the value of the first byte in the byte array