|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjava.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
com.hp.hpl.jena.shared.JenaException
com.hp.hpl.jena.rdf.model.RDFException
LEGACY Generic RDF Exception class. This class is preserved to allow users moving from Jena 1 to Jena 2 to continue to use the magic numbers for Jena exceptions. The codebase no longer uses these numbers directly, but instead uses particular Jena exceptions. Those exceptions presently subclass RDFException and set the magic numbers, but This Will Change.
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 an RDF exception with the given error code. |
|
RDFException(int errorCode,
java.lang.String message)
Create a new RDFException with a given error code and message |
|
RDFException(java.lang.String s)
|
Method Summary | |
java.lang.Throwable |
getCause()
changed by Chris, because "use this if we haven't one" caused a recursive failure of test cases that exported DoesNotReifyException. |
int |
getErrorCode()
|
java.lang.String |
getMessage()
|
java.lang.Exception |
getNestedException()
|
java.lang.String |
toString()
Return an error message describing the exception. |
Methods inherited from class com.hp.hpl.jena.shared.JenaException |
printStackTrace, printStackTrace |
Methods inherited from class java.lang.Throwable |
fillInStackTrace, getLocalizedMessage, getStackTrace, initCause, printStackTrace, setStackTrace |
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.String message)
errorCode
- The code number of the error which has occurred.message
- The message associated with the errorpublic RDFException(java.lang.String s)
Method Detail |
public java.lang.String toString()
public java.lang.String getMessage()
public int getErrorCode()
public java.lang.Throwable getCause()
public java.lang.Exception getNestedException()
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |