Exceptions
matchlab.core.exceptions
¶
Exceptions raised by matchlab.
Classes:
-
MatchlabError–An error occurred in matchlab.
-
SchemaMismatch–An Arrow table did not have the expected schema.
-
SourceTableError–A source's table could not be read from its location.
-
StepNotFound–A step could not be found.
-
ResourceError–A resource could not be named, resolved, or bound unambiguously.
MatchlabError
¶
MatchlabError(message: str | None = None)
Bases: Exception
flowchart TD
matchlab.core.exceptions.MatchlabError[MatchlabError]
click matchlab.core.exceptions.MatchlabError href "" "matchlab.core.exceptions.MatchlabError"
An error occurred in matchlab.
Initialise the error, defaulting the message to the class docstring.
SchemaMismatch
¶
Bases: MatchlabError
flowchart TD
matchlab.core.exceptions.SchemaMismatch[SchemaMismatch]
matchlab.core.exceptions.MatchlabError[MatchlabError]
matchlab.core.exceptions.MatchlabError --> matchlab.core.exceptions.SchemaMismatch
click matchlab.core.exceptions.SchemaMismatch href "" "matchlab.core.exceptions.SchemaMismatch"
click matchlab.core.exceptions.MatchlabError href "" "matchlab.core.exceptions.MatchlabError"
An Arrow table did not have the expected schema.
Initialise with the schemas that failed to match.
SourceTableError
¶
SourceTableError(message: str | None = None)
Bases: MatchlabError
flowchart TD
matchlab.core.exceptions.SourceTableError[SourceTableError]
matchlab.core.exceptions.MatchlabError[MatchlabError]
matchlab.core.exceptions.MatchlabError --> matchlab.core.exceptions.SourceTableError
click matchlab.core.exceptions.SourceTableError href "" "matchlab.core.exceptions.SourceTableError"
click matchlab.core.exceptions.MatchlabError href "" "matchlab.core.exceptions.MatchlabError"
A source's table could not be read from its location.
Initialise the error, defaulting the message to the class docstring.
StepNotFound
¶
Bases: MatchlabError
flowchart TD
matchlab.core.exceptions.StepNotFound[StepNotFound]
matchlab.core.exceptions.MatchlabError[MatchlabError]
matchlab.core.exceptions.MatchlabError --> matchlab.core.exceptions.StepNotFound
click matchlab.core.exceptions.StepNotFound href "" "matchlab.core.exceptions.StepNotFound"
click matchlab.core.exceptions.MatchlabError href "" "matchlab.core.exceptions.MatchlabError"
A step could not be found.
Initialise with an explicit message, or a name to build one from.
Attributes:
-
name–
ResourceError
¶
Bases: ValueError
flowchart TD
matchlab.core.exceptions.ResourceError[ResourceError]
click matchlab.core.exceptions.ResourceError href "" "matchlab.core.exceptions.ResourceError"
A resource could not be named, resolved, or bound unambiguously.