public class NoSuchObjectException extends RuntimeException
Constructor and Description |
---|
NoSuchObjectException()
Creates an exception without a message or object type or object id.
|
NoSuchObjectException(IOHashKey pDidNotExist,
Exception pRootCause)
Creates an exception with the message on the format:
<objecttype> with id=<objectId> does not exist
|
NoSuchObjectException(String message)
Constructs an exception with a message, without
the object type or object Id.
|
NoSuchObjectException(String pMessage,
Exception pRootCause) |
NoSuchObjectException(String message,
int type,
int id)
Constructs an exception with a message, the specified type and
the speified object id.
|
Modifier and Type | Method and Description |
---|---|
String |
getMessage() |
int |
getObjectId()
Returns the object Id of the object that did not exist.
|
int |
getObjectType()
Returns the type of object that did not exist.
|
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
public NoSuchObjectException(String message, int type, int id)
type
- The type of object as defined by IOAtom
constants.id
- The unique ID of the object that was missing.public NoSuchObjectException(String message)
IOAtom.ID_INVALID
will
be used for the object Id.public NoSuchObjectException()
public String getMessage()
getMessage
in class Throwable
public int getObjectId()
IOAtom.ID_INVALID
if no object ID was specified.public int getObjectType()
© 1998- 2018 Stibo DX