caoscrawler.exceptions module#
- exception caoscrawler.exceptions.ForbiddenTransaction#
Bases:
ExceptionThrown if an transactions is needed that is not allowed. For example an update of an entity if the security level is INSERT
- exception caoscrawler.exceptions.ImpossibleMergeError(msg: str, pname: str, value_a: Any, value_b: Any)#
Bases:
ExceptionThrown if due to identifying information, two SyncNodes or two Properties of SyncNodes should be merged, but there is conflicting information that prevents this.
- Parameters:
msg (str) – A case-specific error message describing where the merger error occurred.
pname (str) – The name of the property the values of which caused the merge error.
value_a (Any) – The two values that couldn’t be merged.
value_b (Any) – The two values that couldn’t be merged.
- message#
A case-specific error message describing where the merger error occurred.
- Type:
str
- values#
The two values that couldn’t be merged.
- Type:
tuple[Any]
- pname#
The name of the property the values of which caused the merge error.
- Type:
str
- exception caoscrawler.exceptions.InvalidIdentifiableYAML#
Bases:
ExceptionThrown if the identifiable definition is invalid.
- exception caoscrawler.exceptions.MissingIdentifyingProperty#
Bases:
ExceptionThrown if a SyncNode does not have the properties required by the corresponding registered identifiable
- exception caoscrawler.exceptions.MissingRecordType#
Bases:
ExceptionThrown if an record type can not be found although it is expected that it exists on the server.
- exception caoscrawler.exceptions.MissingReferencingEntityError(*args, rts=None, **kwargs)#
Bases:
ExceptionThrown if the identifiable requires that some entity references the given entity but there is no such reference