schema_salad.exceptions
Shared Exception classes.
Exceptions
Base class for all schema-salad exceptions. |
|
Indicates error with the provided schema definition. |
|
Indicates error with document against the provided schema. |
|
Indicates error with document against the provided schema. |
Functions
|
Module Contents
- exception schema_salad.exceptions.SchemaSaladException(msg, sl=None, children=None, bullet_for_children='', detailed_message=None)
Bases:
digraph inheritancec785f3f71d { bgcolor=transparent; rankdir=LR; size="8.0, 12.0"; "SchemaSaladException" [URL="#schema_salad.exceptions.SchemaSaladException",fillcolor=white,fontname="Vera Sans, DejaVu Sans, Liberation Sans, Arial, Helvetica, sans",fontsize=10,height=0.25,shape=box,style="setlinewidth(0.5),filled",target="_top",tooltip="Base class for all schema-salad exceptions."]; }Exception
Base class for all schema-salad exceptions.
- Parameters:
msg (str)
sl (Optional[schema_salad.sourceline.SourceLine])
children (Optional[collections.abc.Sequence[SchemaSaladException]])
bullet_for_children (str)
detailed_message (Optional[str])
- message
- detailed_message = None
- propagate_sourceline()
- Return type:
None
- as_warning()
- Return type:
- with_sourceline(sl)
- Parameters:
sl (Optional[schema_salad.sourceline.SourceLine])
- Return type:
- leaves()
Return the list of all the exceptions at the tips of the tree.
- Return type:
- __str__()
Convert to a string using
pretty_str()
.- Return type:
- exception schema_salad.exceptions.SchemaException(msg, sl=None, children=None, bullet_for_children='', detailed_message=None)
Bases:
digraph inheritance39122d3403 { bgcolor=transparent; rankdir=LR; size="8.0, 12.0"; "SchemaException" [URL="#schema_salad.exceptions.SchemaException",fillcolor=white,fontname="Vera Sans, DejaVu Sans, Liberation Sans, Arial, Helvetica, sans",fontsize=10,height=0.25,shape=box,style="setlinewidth(0.5),filled",target="_top",tooltip="Indicates error with the provided schema definition."]; "SchemaSaladException" -> "SchemaException" [arrowsize=0.5,style="setlinewidth(0.5)"]; "SchemaSaladException" [URL="#schema_salad.exceptions.SchemaSaladException",fillcolor=white,fontname="Vera Sans, DejaVu Sans, Liberation Sans, Arial, Helvetica, sans",fontsize=10,height=0.25,shape=box,style="setlinewidth(0.5),filled",target="_top",tooltip="Base class for all schema-salad exceptions."]; }SchemaSaladException
Indicates error with the provided schema definition.
- Parameters:
msg (str)
sl (Optional[schema_salad.sourceline.SourceLine])
children (Optional[collections.abc.Sequence[SchemaSaladException]])
bullet_for_children (str)
detailed_message (Optional[str])
- exception schema_salad.exceptions.ValidationException(msg, sl=None, children=None, bullet_for_children='', detailed_message=None)
Bases:
digraph inheritance12502e6bbe { bgcolor=transparent; rankdir=LR; size="8.0, 12.0"; "SchemaSaladException" [URL="#schema_salad.exceptions.SchemaSaladException",fillcolor=white,fontname="Vera Sans, DejaVu Sans, Liberation Sans, Arial, Helvetica, sans",fontsize=10,height=0.25,shape=box,style="setlinewidth(0.5),filled",target="_top",tooltip="Base class for all schema-salad exceptions."]; "ValidationException" [URL="#schema_salad.exceptions.ValidationException",fillcolor=white,fontname="Vera Sans, DejaVu Sans, Liberation Sans, Arial, Helvetica, sans",fontsize=10,height=0.25,shape=box,style="setlinewidth(0.5),filled",target="_top",tooltip="Indicates error with document against the provided schema."]; "SchemaSaladException" -> "ValidationException" [arrowsize=0.5,style="setlinewidth(0.5)"]; }SchemaSaladException
Indicates error with document against the provided schema.
- Parameters:
msg (str)
sl (Optional[schema_salad.sourceline.SourceLine])
children (Optional[collections.abc.Sequence[SchemaSaladException]])
bullet_for_children (str)
detailed_message (Optional[str])
- exception schema_salad.exceptions.ClassValidationException(msg, sl=None, children=None, bullet_for_children='', detailed_message=None)
Bases:
digraph inheritanceb7f51938a5 { bgcolor=transparent; rankdir=LR; size="8.0, 12.0"; "ClassValidationException" [URL="#schema_salad.exceptions.ClassValidationException",fillcolor=white,fontname="Vera Sans, DejaVu Sans, Liberation Sans, Arial, Helvetica, sans",fontsize=10,height=0.25,shape=box,style="setlinewidth(0.5),filled",target="_top"]; "ValidationException" -> "ClassValidationException" [arrowsize=0.5,style="setlinewidth(0.5)"]; "SchemaSaladException" [URL="#schema_salad.exceptions.SchemaSaladException",fillcolor=white,fontname="Vera Sans, DejaVu Sans, Liberation Sans, Arial, Helvetica, sans",fontsize=10,height=0.25,shape=box,style="setlinewidth(0.5),filled",target="_top",tooltip="Base class for all schema-salad exceptions."]; "ValidationException" [URL="#schema_salad.exceptions.ValidationException",fillcolor=white,fontname="Vera Sans, DejaVu Sans, Liberation Sans, Arial, Helvetica, sans",fontsize=10,height=0.25,shape=box,style="setlinewidth(0.5),filled",target="_top",tooltip="Indicates error with document against the provided schema."]; "SchemaSaladException" -> "ValidationException" [arrowsize=0.5,style="setlinewidth(0.5)"]; }ValidationException
Indicates error with document against the provided schema.
- Parameters:
msg (str)
sl (Optional[schema_salad.sourceline.SourceLine])
children (Optional[collections.abc.Sequence[SchemaSaladException]])
bullet_for_children (str)
detailed_message (Optional[str])
- schema_salad.exceptions.to_one_line_messages(exc)
- Parameters:
exc (SchemaSaladException)
- Return type: