Package io.objectbox.exception
Class DbException
- java.lang.Object
-
- java.lang.Throwable
-
- java.lang.Exception
-
- java.lang.RuntimeException
-
- io.objectbox.exception.DbException
-
- All Implemented Interfaces:
java.io.Serializable
- Direct Known Subclasses:
ConstraintViolationException,DbDetachedException,DbFullException,DbMaxDataSizeExceededException,DbMaxReadersExceededException,DbSchemaException,DbShutdownException,FileCorruptException,NonUniqueResultException,NumericOverflowException
public class DbException extends java.lang.RuntimeExceptionGeneral exception for things that may go wrong with the database. Also base class for more concrete exceptions.- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description DbException(java.lang.String message)DbException(java.lang.String message, int errorCode)DbException(java.lang.String message, java.lang.Throwable cause)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description intgetErrorCode()0 == no error code availablejava.lang.StringtoString()
-