UnsupportedGridAttributeError

class petres.errors.UnsupportedGridAttributeError[source]

Bases: GridError

Represent an error for unsupported grid attribute access.

Parameters:
  • message (str | None, default=None) – Error message template. If None, the class-level default_message is used.

  • **context (Any) – Keyword values used for message formatting. If supported_names is provided and iterable, it is converted to a readable comma-separated string.

Initialize the exception with optional formatting context.

default_message: str = "Unsupported grid attribute '{attribute_name}'. Supported attributes are: {supported_names}."
__init__(message=None, **context)[source]

Initialize the exception with optional formatting context.