|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--java.lang.Throwable | +--java.lang.Exception | +--com.hp.hpl.mesa.rdf.jena.model.RDFException
Generic RDF Exception class.
Field Summary | |
static int |
ALTHASNODEFAULT
An Alt resource has no default value. |
static int |
ASSERTIONFAILURE
Internal Error - an assertion has failed. |
static int |
INVALIDBOOLEANFORMAT
A literal did not represent a boolean value. |
static int |
INVALIDERRORCODE
The error code is invalid. |
static int |
INVALIDPROPERTYURI
The URI supplied for a Property is invalid. |
static int |
ITERATORCLOSED
The iterator is closed. |
static int |
LITERALNOTCHAR
A literal did not contain a valid char. |
static int |
NESTEDEXCEPTION
This exception contains another which has been caught and encapsulated as an RDF exception. |
static int |
NOREADERFORLANG
No reader is know for that lanaguage |
static int |
NORESOURCECONSTRUCTOR
An enhanced resource does not have a constructor of the form foo(Resource r) |
static int |
NOSUCHELEMENT
A required element does not exist. |
static int |
NOTANONRESOURCE
The resource is no anonymous. |
static int |
NOTRELATEDTOMODEL
A method which would access a model has been invoked on an object with no associated model. |
static int |
NOWRITERFORLANG
No Writer is known for that language |
static int |
OBJECTNOTLITERAL
The object of a Statement is not a Literal. |
static int |
OBJECTNOTRESOURCE
The object of a statement is not a Resource. |
static int |
OBJECTWRONGTYPE
The object of a statement is not of the expected type. |
static int |
PROPERTYNOTFOUND
A property was not found in the model. |
static int |
SELECTOREXCEPTION
An application supplied Selector has raised an exception, which is encapsulated in this exception. |
static int |
SEQINDEXBOUNDS
A sequence index is out of the valid range for that sequence. |
static int |
STATEMENTNOTPRESENT
Statement not present |
static int |
SYNTAXERROR
Syntax Errors in input stream |
static int |
UNKNOWNPROPERTY
Unknown Property |
static int |
UNSUPPORTEDOPERATION
A method which is unsupported has been called. |
Constructor Summary | |
RDFException(java.lang.Exception e)
Encapsulate an exception in an RDFException. |
|
RDFException(int errorCode)
Create a new RDF exception with the given error code. |
|
RDFException(int errorCode,
java.lang.Exception e)
Create a new RDFException with a given error code and encapsulate another exception. |
|
RDFException(int errorCode,
java.lang.String message)
Create a new RDFException with a given error code and message |
Method Summary | |
int |
getErrorCode()
|
java.lang.Exception |
getNestedException()
|
java.lang.String |
toString()
Return an error message describing the exception. |
Methods inherited from class java.lang.Throwable |
fillInStackTrace, getLocalizedMessage, getMessage, printStackTrace, printStackTrace, printStackTrace |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
public static final int NOTRELATEDTOMODEL
public static final int INVALIDPROPERTYURI
public static final int UNSUPPORTEDOPERATION
public static final int OBJECTNOTRESOURCE
public static final int OBJECTNOTLITERAL
public static final int PROPERTYNOTFOUND
public static final int NOTANONRESOURCE
public static final int ITERATORCLOSED
public static final int INVALIDERRORCODE
public static final int NESTEDEXCEPTION
public static final int INVALIDBOOLEANFORMAT
public static final int LITERALNOTCHAR
public static final int ALTHASNODEFAULT
public static final int SELECTOREXCEPTION
public static final int OBJECTWRONGTYPE
public static final int NOSUCHELEMENT
public static final int ASSERTIONFAILURE
public static final int SEQINDEXBOUNDS
public static final int NORESOURCECONSTRUCTOR
public static final int NOREADERFORLANG
public static final int NOWRITERFORLANG
public static final int UNKNOWNPROPERTY
public static final int STATEMENTNOTPRESENT
public static final int SYNTAXERROR
Constructor Detail |
public RDFException(int errorCode)
errorCode
- The code number of the error which has occurred.public RDFException(java.lang.Exception e)
e
- The exception to be encapsulated.public RDFException(int errorCode, java.lang.Exception e)
errorCode
- The code number of the error which has occurred.e
- The exception to be encapsulated.public RDFException(int errorCode, java.lang.String message)
errorCode
- The code number of the error which has occurred.message
- The message associated with the errorMethod Detail |
public java.lang.String toString()
toString
in class java.lang.Throwable
public int getErrorCode()
public java.lang.Exception getNestedException()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |