Errors
cognite.neat._issues.errors
#
DefaultPydanticError
dataclass
#
Bases: NeatError
, ValueError
{type}: {msg} [loc={loc}]
Source code in cognite/neat/_issues/_base.py
NeatError
dataclass
#
Bases: NeatIssue
, Exception
This is the base class for all exceptions (errors) used in Neat.
Source code in cognite/neat/_issues/_base.py
from_pydantic_errors(errors, **kwargs)
classmethod
#
Convert a list of pydantic errors to a list of Error instances.
This is intended to be overridden in subclasses to handle specific error types.
Source code in cognite/neat/_issues/_base.py
RowError
dataclass
#
Bases: NeatError
, ValueError
In {sheet_name}, row={row}, column={column}: {msg}. [type={type}, input_value={input}]
Source code in cognite/neat/_issues/_base.py
AuthorizationError
dataclass
#
Bases: NeatError
, RuntimeError
Missing authorization for {action}: {reason}
Source code in cognite/neat/_issues/errors/_external.py
FileMissingRequiredFieldError
dataclass
#
Bases: NeatError
, ValueError
Missing required {field_name} in {filepath}: {field}
Source code in cognite/neat/_issues/errors/_external.py
FileNotAFileError
dataclass
#
Bases: NeatError
, FileNotFoundError
{filepath} is not a file
Source code in cognite/neat/_issues/errors/_external.py
FileNotFoundNeatError
dataclass
#
Bases: NeatError
, FileNotFoundError
File {filepath} not found
Source code in cognite/neat/_issues/errors/_external.py
FileReadError
dataclass
#
Bases: NeatError
, RuntimeError
Error when reading file, {filepath}: {reason}
Source code in cognite/neat/_issues/errors/_external.py
FileTypeUnexpectedError
dataclass
#
Bases: NeatError
, TypeError
Unexpected file type: {filepath}. Expected format: {expected_format}
Source code in cognite/neat/_issues/errors/_external.py
NeatYamlError
dataclass
#
Bases: NeatError
, YAMLError
Invalid YAML: {reason}
Source code in cognite/neat/_issues/errors/_external.py
NeatImportError
dataclass
#
Bases: NeatError
, ImportError
The functionality requires {module}. You can include it
in your neat installation with pip install "cognite-neat[{neat_extra}]"
.
Source code in cognite/neat/_issues/errors/_general.py
NeatTypeError
dataclass
#
NeatValueError
dataclass
#
RegexViolationError
dataclass
#
Bases: NeatError
, ValueError
Value, {value} failed regex, {regex}, validation. Make sure that the name follows the regex pattern.
Source code in cognite/neat/_issues/errors/_general.py
PropertyDefinitionDuplicatedError
dataclass
#
Bases: PropertyError[T_Identifier]
The {resource_type} with identifier {identifier} has multiple definitions for the property {property_name} with values {property_values}
Source code in cognite/neat/_issues/errors/_properties.py
PropertyDefinitionError
dataclass
#
Bases: PropertyError[T_Identifier]
Invalid property definition for {resource_type} {identifier}.{property_name}: {reason}
Source code in cognite/neat/_issues/errors/_properties.py
PropertyMappingDuplicatedError
dataclass
#
Bases: PropertyError[T_Identifier]
, Generic[T_Identifier, T_ReferenceIdentifier]
The {resource_type} with identifier {identifier}.{property_name} is mapped to by: {mappings}. Ensure that only one {mapping_type} maps to {resource_type} {identifier}.{property_name}
Source code in cognite/neat/_issues/errors/_properties.py
PropertyNotFoundError
dataclass
#
Bases: PropertyError
, Generic[T_Identifier, T_ReferenceIdentifier]
The {resource_type} with identifier {identifier} does not have a property {property_name}
Source code in cognite/neat/_issues/errors/_properties.py
PropertyTypeNotSupportedError
dataclass
#
Bases: PropertyError[T_Identifier]
The {resource_type} with identifier {identifier} has a property {property_name} of unsupported type {property_type}
Source code in cognite/neat/_issues/errors/_properties.py
ResourceChangedError
dataclass
#
Bases: ResourceError[T_Identifier]
The {resource_type} with identifier {identifier} has changed{changed}
Source code in cognite/neat/_issues/errors/_resources.py
ResourceConvertionError
dataclass
#
Bases: ResourceError
, ValueError
Failed to convert the {resource_type} {identifier} to {target_format}: {reason}
Source code in cognite/neat/_issues/errors/_resources.py
ResourceCreationError
dataclass
#
Bases: ResourceError[T_Identifier]
, ValueError
Failed to create {resource_type} with identifier {identifier}. The error was: {error}
Source code in cognite/neat/_issues/errors/_resources.py
ResourceDuplicatedError
dataclass
#
Bases: ResourceError[T_Identifier]
The {resource_type} with identifier {identifier} is duplicated in {location}
Source code in cognite/neat/_issues/errors/_resources.py
ResourceError
dataclass
#
Bases: NeatError
, Generic[T_Identifier]
, RuntimeError
Base class for resource errors {resource_type} with identifier {identifier}
Source code in cognite/neat/_issues/errors/_resources.py
ResourceMissingIdentifierError
dataclass
#
Bases: NeatError
, ValueError
The {resource_type} with name {name} is missing an identifier.
Source code in cognite/neat/_issues/errors/_resources.py
ResourceNotDefinedError
dataclass
#
Bases: ResourceError[T_Identifier]
The {resource_type} {identifier} is not defined in the {location}
Source code in cognite/neat/_issues/errors/_resources.py
ResourceNotFoundError
dataclass
#
Bases: ResourceError
, Generic[T_Identifier, T_ReferenceIdentifier]
The {resource_type} with identifier {identifier} does not exist
Source code in cognite/neat/_issues/errors/_resources.py
ResourceRetrievalError
dataclass
#
Bases: ResourceError[T_Identifier]
Failed to retrieve {resource_type} with identifier {identifier}. The error was: {error}
Source code in cognite/neat/_issues/errors/_resources.py
WorkflowConfigurationNotSetError
dataclass
#
Bases: NeatError
, RuntimeError
The configuration variable '{config_variable}' is not set. Please set the configuration before running the workflow.
Source code in cognite/neat/_issues/errors/_workflow.py
WorkFlowMissingDataError
dataclass
#
Bases: NeatError
, ValueError
In the workflow step {step_name} the following data is missing: {missing_data}.
Source code in cognite/neat/_issues/errors/_workflow.py
WorkflowStepNotInitializedError
dataclass
#
Bases: NeatError
, RuntimeError
Step {step_name} has not been initialized.