|
Berkeley DB version 5.3.28 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object java.lang.Throwable java.lang.Exception com.sleepycat.db.DatabaseException
public class DatabaseException
The root of all database exceptions.
Note that in some cases, certain methods return status values without issuing
an exception. This occurs in situations that are not normally considered an
error, but when some informational status is returned. For example,
Database.get
returns OperationStatus.NOTFOUND
when a
requested key does not appear in the database.
Constructor Summary | |
---|---|
DatabaseException(String s)
Construct an exception with the specified message. |
|
DatabaseException(String s,
int errno)
Construct an exception with the specified message and error number. |
|
DatabaseException(String s,
int errno,
Environment dbenv)
Construct an exception with the specified message and error number associated with a database environment handle. |
|
DatabaseException(Throwable t)
Construct an exception with the specified cause exception. |
Method Summary | |
---|---|
Environment |
getEnvironment()
Return the environment in which the exception occurred. |
int |
getErrno()
Get the error number associated with this exception. |
String |
toString()
|
Methods inherited from class java.lang.Throwable |
---|
fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public DatabaseException(Throwable t)
public DatabaseException(String s)
public DatabaseException(String s, int errno)
public DatabaseException(String s, int errno, Environment dbenv)
Method Detail |
---|
public Environment getEnvironment()
This method may be called at any time during the life of the application.
public int getErrno()
Note that error numbers can be returned from system calls and are system-specific.
public String toString()
toString
in class Throwable
|
Berkeley DB version 5.3.28 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |