org.proteinshader.structure.exceptions
Class InvalidIDException
java.lang.Object
java.lang.Throwable
java.lang.Exception
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(). |
Methods inherited from class java.lang.Throwable |
fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString |
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