Source code for esrf_pathlib._schemas.errors
[docs]
class EsrfPathlibError(Exception):
pass
[docs]
class FieldNameError(EsrfPathlibError):
"""Field (concept or template) cannot be called this way."""
[docs]
class ForbiddenFieldName(FieldNameError):
"""Field (concept or template) has a reserved name."""
[docs]
class FieldNameCollision(FieldNameError):
"""Field (concept or template) already exists."""
[docs]
class PathSchemaCollision(EsrfPathlibError):
"""Schema already exists."""
[docs]
class UnknownPathConcept(EsrfPathlibError):
"""Path concept is not known."""
[docs]
class PathConceptValueError(EsrfPathlibError):
"""Path concept is known but its value is not known."""
[docs]
class PathConceptMatchError(PathConceptValueError):
"""Path concept is known but its value is wrong."""
[docs]
class PathConceptWithoutValue(PathConceptValueError):
"""Path concept is known but its value is not known."""
[docs]
class UnknownPathTemplate(EsrfPathlibError):
"""Path template is not known."""
[docs]
class UnknownField(EsrfPathlibError):
"""Path field (concept or template) is not known."""
[docs]
class UnknownPathSchema(EsrfPathlibError):
"""Schema is not known."""
[docs]
class PathTemplateMatchError(EsrfPathlibError):
"""Path does not match a path template."""
[docs]
class PathSchemaMatchError(PathTemplateMatchError):
"""Path does not match the schema. It did not match any of the enabled path templates."""
[docs]
class SchemaAttributeError(AttributeError):
pass