hermes.model.errors

hermes.model.errors

Module Contents

exception hermes.model.errors.HermesValidationError

Bases: Exception

This exception should be thrown when input validation (e.g., during harvest) occurs.

To be able to track and fix the error, you should use this in conjunction with the original exception if applicable:

try:
     validate_some_data(src_file)
except ValueError as e:
    raise HermesValidationError(src_file) from e
exception hermes.model.errors.MergeError(path: hermes.model.path.ContextPath, old_Value: Any, new_value: Any, **kwargs)

Bases: Exception

This exception should be raised when there is an error during a merge / set operation.