# sec_interp.core.exceptions module

Domain-specific exceptions for SecInterp.

This module defines a hierarchy of exceptions to provide clearer error reporting and better handling of expected and unexpected conditions.

exception sec_interp.core.exceptions.SecInterpError(message: str, details: dict | None = None)

  Bases: `Exception`

  Base class for all SecInterp-specific exceptions.

  Initialize the SecInterp error with a message and optional details.

  Parameters:

    - message – Human-readable error message explaining what happened.

    - details – Optional dictionary containing technical error context or details.

  __init__(message: str, details: dict | None = None)

    Initialize the SecInterp error with a message and optional details.

    Parameters:

      - message – Human-readable error message explaining what happened.

      - details – Optional dictionary containing technical error context or details.

exception sec_interp.core.exceptions.ValidationError(message: str, details: dict | None = None)

  Bases: `SecInterpError`

  Raised when input validation fails.

  Initialize the SecInterp error with a message and optional details.

  Parameters:

    - message – Human-readable error message explaining what happened.

    - details – Optional dictionary containing technical error context or details.

exception sec_interp.core.exceptions.ProcessingError(message: str, details: dict | None = None)

  Bases: `SecInterpError`

  Raised when data processing fails.

  Initialize the SecInterp error with a message and optional details.

  Parameters:

    - message – Human-readable error message explaining what happened.

    - details – Optional dictionary containing technical error context or details.

exception sec_interp.core.exceptions.GeometryError(message: str, details: dict | None = None)

  Bases: `ProcessingError`

  Raised for geometry-related errors (invalid, null, etc.).

  Initialize the SecInterp error with a message and optional details.

  Parameters:

    - message – Human-readable error message explaining what happened.

    - details – Optional dictionary containing technical error context or details.

exception sec_interp.core.exceptions.DataMissingError(message: str, details: dict | None = None)

  Bases: `ProcessingError`

  Raised when required data (e.g. from a layer) is missing.

  Initialize the SecInterp error with a message and optional details.

  Parameters:

    - message – Human-readable error message explaining what happened.

    - details – Optional dictionary containing technical error context or details.

exception sec_interp.core.exceptions.ExportError(message: str, details: dict | None = None)

  Bases: `SecInterpError`

  Raised when data export fails.

  Initialize the SecInterp error with a message and optional details.

  Parameters:

    - message – Human-readable error message explaining what happened.

    - details – Optional dictionary containing technical error context or details.

exception sec_interp.core.exceptions.ConfigurationError(message: str, details: dict | None = None)

  Bases: `SecInterpError`

  Raised for configuration-related issues.

  Initialize the SecInterp error with a message and optional details.

  Parameters:

    - message – Human-readable error message explaining what happened.

    - details – Optional dictionary containing technical error context or details.