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
,FeatureNotAvailableException
,FileCorruptException
,NonUniqueResultException
,NumericOverflowException
public class DbException extends java.lang.RuntimeException
General 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 int
getErrorCode()
0 == no error code availablejava.lang.String
toString()
-