com.hp.hpl.mesa.rdf.jena.bdb
Class BDBException
java.lang.Object
|
+--java.lang.Throwable
|
+--java.lang.Exception
|
+--com.hp.hpl.mesa.rdf.jena.model.RDFException
|
+--com.hp.hpl.mesa.rdf.jena.bdb.BDBException
- All Implemented Interfaces:
- java.io.Serializable
- public class BDBException
- extends RDFException
A class of RDF Exceptions specific to the Berkeley DB implementation.
- Version:
- $Name: $ $Revision: 1.2 $ $Date: 2001/09/25 14:52:09 $
- Author:
- bwm
- See Also:
- Serialized Form
Field Summary |
static int |
BADENVDIR
There is a problem with the Berkeley DB environment directory |
static int |
BADMAGIC
Bad magic number in database header |
static int |
CREATEENVDIR
cannot create the Berkeley DB environment directory is not a directory |
static int |
DBALREADYOPEN
database is already open |
static int |
DBCORRUPT
database structure corrupt |
static int |
HEADERCORRUPT
database header corrupt |
Fields inherited from class com.hp.hpl.mesa.rdf.jena.model.RDFException |
ALTHASNODEFAULT, ASSERTIONFAILURE, INVALIDBOOLEANFORMAT, INVALIDERRORCODE, INVALIDPROPERTYURI, ITERATORCLOSED, LITERALNOTCHAR, NESTEDEXCEPTION, NOREADERFORLANG, NORESOURCECONSTRUCTOR, NOSUCHELEMENT, NOTANONRESOURCE, NOTRELATEDTOMODEL, NOWRITERFORLANG, OBJECTNOTLITERAL, OBJECTNOTRESOURCE, OBJECTWRONGTYPE, PROPERTYNOTFOUND, SELECTOREXCEPTION, SEQINDEXBOUNDS, STATEMENTNOTPRESENT, SYNTAXERROR, UNKNOWNPROPERTY, UNSUPPORTEDOPERATION |
Constructor Summary |
BDBException(java.lang.Exception e)
Encapsulate an exception in an RDFException. |
BDBException(int errorCode)
Create a new RDF exception with the given error code. |
BDBException(int errorCode,
java.lang.Exception e)
Create a new RDFException with a given error code and encapsulate another
exception. |
Method Summary |
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 |
BADENVDIR
public static final int BADENVDIR
- There is a problem with the Berkeley DB environment directory
CREATEENVDIR
public static final int CREATEENVDIR
- cannot create the Berkeley DB environment directory is not a directory
DBALREADYOPEN
public static final int DBALREADYOPEN
- database is already open
DBCORRUPT
public static final int DBCORRUPT
- database structure corrupt
BADMAGIC
public static final int BADMAGIC
- Bad magic number in database header
HEADERCORRUPT
public static final int HEADERCORRUPT
- database header corrupt
BDBException
public BDBException(int errorCode)
- Create a new RDF exception with the given error code.
- Parameters:
errorCode
- The code number of the error which has occurred.
BDBException
public BDBException(java.lang.Exception e)
- Encapsulate an exception in an RDFException.
- Parameters:
e
- The exception to be encapsulated.
BDBException
public BDBException(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.
toString
public java.lang.String toString()
- Return an error message describing the exception.
- Overrides:
toString
in class RDFException
- Returns:
- the error message
Copyright © 2001 Hewlett-Packard. All Rights Reserved.