ts_ids_core.errors module¶
Exceptions used throughout ts_ids_core.
- exception InvalidArrayShape[source]¶
Bases:
ValueErrorA multidimensional array has an invalid shape.
- exception InvalidField[source]¶
Bases:
ExceptionInvalid definition for the IDS field.
Note that this error should only be raised during class creation. Raise a
ValueErrorfor invalid field values, e.g. in the body of a@field_validatormethod.
- exception InvalidForeignKeyField[source]¶
Bases:
InvalidFieldInvalid foreign key field definition.
- exception InvalidForeignKeySchema[source]¶
Bases:
ValueErrorInvalid foreign key schema when creating JSON schema.
- exception InvalidNonMandatoryField[source]¶
Bases:
InvalidFieldThe Non-Mandatory Field of an IDS class is invalid.
- exception InvalidPrimaryKeyField[source]¶
Bases:
InvalidFieldInvalid primary key field definition.
- exception InvalidSchemaMetadata[source]¶
Bases:
ValueErrorRaised when the IDS’ JSON Schema contains an invalid top-level metadata value.
- exception MultipleTypesError[source]¶
Bases:
TypeErrorField which should have one type has multiple types.
- exception NullableReferenceError[source]¶
Bases:
ValueErrorfields that contain a reference cannot be nullable.
- exception SchemaValidationError[source]¶
Bases:
ValueErrorRaised when a value is not consistent with the schema.
- exception UnimplementedAbstractField[source]¶
Bases:
InvalidFieldAn abstract field is being used when instead a subclass should implement it in order to use it.
- exception WrongConstantError[source]¶
Bases:
ValueErrorRaised when the user passes a value to an abstract ‘const’ field.