UnreachableStateError#

class openstef_core.exceptions.UnreachableStateError(message: str)[source]#

Bases: Exception

Exception raised when a code path that should be unreachable is executed.

This indicates a violation of invariants or preconditions that should have been guaranteed by the system design. Typically used when configuration validation should have prevented reaching this state.

Parameters:

message (str)

__init__(message: str)[source]#

Initialize the exception with a descriptive error message.

Parameters:
  • message (str) – Human-readable description of the unreachable state condition.

  • message