@nhtio/web-re-active-record/errors
Errors used by the Reactive Active Record ORM
Classes
| Class | Description |
|---|---|
| InvalidReactiveDatabaseOptionsError | Throw by ReactiveDatabase when the options provided to the ReactiveDatabase are invalid. |
| MissingGlueException | Throw when trying to create a *Through relationship with no intermediate relationships defined |
| MissingModelException | Throw when trying to boot relationships for models which do not exist |
| MissingReactiveModelRecordError | Throw by ReactiveModel when using findOrFail or findByOrFail methods and no matching instance is found. |
| NoReactiveModelRecordError | Throw by ReactiveModel when using firstOrFailand no matching instances are found. |
| QueryBuilderUnreffedException | Throw when trying to execute a query on a query builder from a ReactiveDatabase which has been shut down |
| ReactiveDatabaseInitializationException | Throw by ReactiveDatabase when an error occurs while initializing the database. |
| ReactiveDatabaseNoSuchModelException | Throw by ReactiveDatabase when a non-existent model is requested. |
| ReactiveModelCannotOverridePrimaryKeyException | Throw by ReactiveModel when attempting to override the primary key of a model instance |
| ReactiveModelDeletedException | Throw by ReactiveModel when trying to update a property on a deleted model instance. |
| ReactiveModelFailedConstraintsException | Throw by ReactiveModel when trying to save a model instance with values which do not match the constraints. |
| ReactiveModelNoSuchPropertyException | Throw by ReactiveModel when attempting to set the value of a property that does not exist on the model. |
| ReactiveModelQueryException | Throw by ReactiveModel when an error occurs while performing a database operation. |
| ReactiveModelUnacceptableValueException | Throw by ReactiveModel when attempting to set the value of a property to a value which cannot be serialized. |
| ReactiveModelUncreatableException | Throw by ReactiveModel when an some properties are missing during a creation operation. |
| ReactiveModelUnsubscribableException | Throw by ReactiveModel when trying to subscribe to events on a model instance which is deleted. |
| ReactiveQueryBuilderClauseTooComplexError | Throw by ReactiveQueryBuilder when trying to append a clause to the query builder which is too complex (mixing and and or clauses). |
| ReactiveQueryBuilderInvalidWhereOperationException | Throw by ReactiveQueryBuilder when trying to append a clause to the query builder which is not a valid where operation. |
| ReactiveQueryBuilderNotBetweenableException | Throw by ReactiveQueryBuilder when trying to append a clause to the query builder with an unbetweenable value in an inable comparison. |
| ReactiveQueryBuilderNotInnableException | Throw by ReactiveQueryBuilder when trying to append a clause to the query builder with an uninable value in an inable comparison. |
| ReactiveQueryBuilderNotLikeableException | Throw by ReactiveQueryBuilder when trying to append a clause to the query builder with an unlikable value in a like comparison. |
| ReactiveQueryBuilderNotQuantitivlyComparableValueException | Throw by ReactiveQueryBuilder when trying to append a clause to the query builder which is not a valid where operation. |
| ReactiveQueryResponseOperationException | Base class for all ReActiveRecord errors. |
| ReactiveQueryResponsePendingValueException | Base class for all ReActiveRecord errors. |
| ReActiveRecordError | Base class for all ReActiveRecord errors. |
| ReActiveRecordValidationError | Base class for all ReActiveRecord validation errors. |
| RelationshipCannotOverridePropertyException | Throw when trying to create a relationship on a model's property |
| RelationshipNotBootedException | Throw when trying to prepare a relationship which has not been booted first |
| ShutdownDatabaseException | Throw when trying to execute static methods on a model from a ReactiveDatabase which has been shut down |
| UnpreparedRelationshipException | Throw when trying to access the related model instance which has not been prepared first |
Interfaces
| Interface | Description |
|---|---|
| ExtendedReActiveRecordValidationErrorConstructor | A utility type for the constructor of an error which extends ReActiveRecordValidationError. |
| ReActiveRecordErrorOptions | Describes the options for the ReActiveRecordError class. |