org.proteinshader.structure.exceptions
Class InvalidIDException

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by org.proteinshader.structure.exceptions.InvalidIDException
All Implemented Interfaces:
Serializable

public class InvalidIDException
extends Exception

Used to report that an ID is invalid or missing. Many classes in the structure package require that a String is given as an ID when the class is created, and this ID can later be used to look up the object. The ID cannot be null or an empty String.

See Also:
Serialized Form

Constructor Summary
InvalidIDException()
          Sets the default message to "ERROR: A missing or invalid ID was detected".
InvalidIDException(String message)
          The message given this constructor can be retrieved using getMessage().
 
Method Summary
 
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

InvalidIDException

public InvalidIDException()
Sets the default message to "ERROR: A missing or invalid ID was detected". This message can be retrieved using getMessage().


InvalidIDException

public InvalidIDException(String message)
The message given this constructor can be retrieved using getMessage().

Parameters:
message - a description of the problem.


Copyright © 2007-2008