public class SchematicException
extends java.lang.RuntimeException
SQLiteHouse
whenever a method encounters a problem with the schema definition discovered
in some schematic class.Modifier and Type | Field and Description |
---|---|
static java.lang.String |
DEFAULT_MESSAGE |
Constructor and Description |
---|
SchematicException() |
SchematicException(java.lang.String sMessage) |
SchematicException(java.lang.String sMessage,
java.lang.Throwable xCause) |
SchematicException(java.lang.Throwable xCause) |
Modifier and Type | Method and Description |
---|---|
static SchematicException |
classNotInSchema(java.lang.Class<? extends SQLightable> cls,
java.util.List<java.lang.Class<? extends SQLightable>> aclsSchema)
Returns an exception to be thrown when a method tries to operate on a
schematic class that is not actually part of a defined schema.
|
static SchematicException |
columnNotFound(java.lang.String sClassName,
java.lang.String sFieldName,
java.lang.String sTableName,
java.lang.Throwable x)
Returns a new exception to be thrown when a field's mapping into an
existing table can't be resolved.
|
static SchematicException |
fieldNotAnnotated(java.lang.reflect.Field fld)
Returns an exception to be thrown when a field that was supposed to
represent a column isn't properly annotated.
|
static SchematicException |
fieldWasInaccessible(java.lang.String sClassName,
java.lang.String sFieldName,
java.lang.IllegalAccessException xAccess)
Returns a new exception that notes a condition that can't happen: namely,
that a field we had previously made accessible wasn't accessible when
subsequently accessed.
|
static SchematicException |
noLensForColumn(SQLightable.Reflection.Column col,
java.lang.Throwable xCause)
Returns an exception to be thrown when a column operation cannot continue
because the column's
Refractor
implementation cannot be determined. |
static SchematicException |
noLensForField(java.lang.reflect.Field fld,
java.lang.Throwable xCause)
Returns an exception to be thrown when an operation cannot continue
because a field/column's
Refractor
implementation cannot be determined |
static SchematicException |
tableCreationOrUpdateFailed(SQLightable.Reflection refl,
java.lang.String sSQL,
java.lang.Throwable xCause)
Returns an exception to be thrown when an attempt to create or update the
SQLite database fails because the SQL statement failed.
|
public static final java.lang.String DEFAULT_MESSAGE
public SchematicException()
public SchematicException(java.lang.String sMessage)
public SchematicException(java.lang.Throwable xCause)
public SchematicException(java.lang.String sMessage, java.lang.Throwable xCause)
public static SchematicException fieldWasInaccessible(java.lang.String sClassName, java.lang.String sFieldName, java.lang.IllegalAccessException xAccess)
sClassName
- the name of the schematic class (since 0.1.6 #47)sFieldName
- the name of the field (since 0.1.6 #47)xAccess
- the exceptionpublic static SchematicException columnNotFound(java.lang.String sClassName, java.lang.String sFieldName, java.lang.String sTableName, java.lang.Throwable x)
SQLiteHouse
database is used from the beginning, but might arise
when there are mismatches in the annotations, or when migrating from a
non-SQLiteHouse
database implementation.sClassName
- the name of the field's classsFieldName
- the name of the sought fieldsTableName
- the table in which the column was expectedx
- root-cause exception, if anypublic static SchematicException fieldNotAnnotated(java.lang.reflect.Field fld)
fld
- the fieldpublic static SchematicException tableCreationOrUpdateFailed(SQLightable.Reflection refl, java.lang.String sSQL, java.lang.Throwable xCause)
refl
- a reflection of the schematic class that failedsSQL
- the SQL statement that was executedxCause
- the root cause of the failure, if any (may be null)public static SchematicException noLensForColumn(SQLightable.Reflection.Column col, java.lang.Throwable xCause)
Refractor
implementation cannot be determined.col
- the column on which the operation would be performedxCause
- the cause of the failure, if any (may be null)public static SchematicException noLensForField(java.lang.reflect.Field fld, java.lang.Throwable xCause)
Refractor
implementation cannot be determinedfld
- the field on which the operation would be performedxCause
- the cause of the failure, if any (may be null)public static SchematicException classNotInSchema(java.lang.Class<? extends SQLightable> cls, java.util.List<java.lang.Class<? extends SQLightable>> aclsSchema)
cls
- the class that is not part of the schemaaclsSchema
- the classes that are part of the schema