com.hp.hpl.mesa.rdf.jena.model
Class RDFException

java.lang.Object
  |
  +--java.lang.Throwable
        |
        +--java.lang.Exception
              |
              +--com.hp.hpl.mesa.rdf.jena.model.RDFException
All Implemented Interfaces:
java.io.Serializable
Direct Known Subclasses:
BDBException, RDFRDBException

public class RDFException
extends java.lang.Exception

Generic RDF Exception class.

Version:
$Name: $ $Revision: 1.7 $ $Date: 2001/09/20 17:03:16 $
Author:
bwm
See Also:
Serialized Form

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

NOTRELATEDTOMODEL

public static final int NOTRELATEDTOMODEL
A method which would access a model has been invoked on an object with no associated model.

INVALIDPROPERTYURI

public static final int INVALIDPROPERTYURI
The URI supplied for a Property is invalid.

UNSUPPORTEDOPERATION

public static final int UNSUPPORTEDOPERATION
A method which is unsupported has been called.

OBJECTNOTRESOURCE

public static final int OBJECTNOTRESOURCE
The object of a statement is not a Resource.

OBJECTNOTLITERAL

public static final int OBJECTNOTLITERAL
The object of a Statement is not a Literal.

PROPERTYNOTFOUND

public static final int PROPERTYNOTFOUND
A property was not found in the model.

NOTANONRESOURCE

public static final int NOTANONRESOURCE
The resource is no anonymous.

ITERATORCLOSED

public static final int ITERATORCLOSED
The iterator is closed.

INVALIDERRORCODE

public static final int INVALIDERRORCODE
The error code is invalid.

NESTEDEXCEPTION

public static final int NESTEDEXCEPTION
This exception contains another which has been caught and encapsulated as an RDF exception.

INVALIDBOOLEANFORMAT

public static final int INVALIDBOOLEANFORMAT
A literal did not represent a boolean value.

LITERALNOTCHAR

public static final int LITERALNOTCHAR
A literal did not contain a valid char.

ALTHASNODEFAULT

public static final int ALTHASNODEFAULT
An Alt resource has no default value.

SELECTOREXCEPTION

public static final int SELECTOREXCEPTION
An application supplied Selector has raised an exception, which is encapsulated in this exception.

OBJECTWRONGTYPE

public static final int OBJECTWRONGTYPE
The object of a statement is not of the expected type.

NOSUCHELEMENT

public static final int NOSUCHELEMENT
A required element does not exist.

ASSERTIONFAILURE

public static final int ASSERTIONFAILURE
Internal Error - an assertion has failed.

SEQINDEXBOUNDS

public static final int SEQINDEXBOUNDS
A sequence index is out of the valid range for that sequence.

NORESOURCECONSTRUCTOR

public static final int NORESOURCECONSTRUCTOR
An enhanced resource does not have a constructor of the form foo(Resource r)

NOREADERFORLANG

public static final int NOREADERFORLANG
No reader is know for that lanaguage

NOWRITERFORLANG

public static final int NOWRITERFORLANG
No Writer is known for that language

UNKNOWNPROPERTY

public static final int UNKNOWNPROPERTY
Unknown Property

STATEMENTNOTPRESENT

public static final int STATEMENTNOTPRESENT
Statement not present

SYNTAXERROR

public static final int SYNTAXERROR
Syntax Errors in input stream
Constructor Detail

RDFException

public RDFException(int errorCode)
Create a new RDF exception with the given error code.
Parameters:
errorCode - The code number of the error which has occurred.

RDFException

public RDFException(java.lang.Exception e)
Encapsulate an exception in an RDFException.
Parameters:
e - The exception to be encapsulated.

RDFException

public RDFException(int errorCode,
                    java.lang.Exception e)
Create a new RDFException with a given error code and encapsulate another exception.
Parameters:
errorCode - The code number of the error which has occurred.
e - The exception to be encapsulated.

RDFException

public RDFException(int errorCode,
                    java.lang.String message)
Create a new RDFException with a given error code and message
Parameters:
errorCode - The code number of the error which has occurred.
message - The message associated with the error
Method Detail

toString

public java.lang.String toString()
Return an error message describing the exception.
Overrides:
toString in class java.lang.Throwable
Returns:
the error message

getErrorCode

public int getErrorCode()

getNestedException

public java.lang.Exception getNestedException()


Copyright © 2001 Hewlett-Packard. All Rights Reserved.