Skip to content

innovate.NativeError

All current Python definitions

View source · Source file SHA-256: 522871fe0b61b840b5f85b8f278beb2b79c7afd68645265ae3a68983d56d74e4

class NativeError(ValueError):
...

Expose a native request failure as a Python ValueError subtype.

  • code: Machine-readable error code copied from the native error envelope.
  • validation: Structured validation details when supplied by the kernel, otherwise None. The nested object is not deep-copied.

View source · Source file SHA-256: 522871fe0b61b840b5f85b8f278beb2b79c7afd68645265ae3a68983d56d74e4

def __init__(self, error: dict[str, Any]): ...

Construct an exception from the kernel’s error object.

  • error: Mapping containing code and message and, optionally, validation details. Its code is converted to a string.
  • KeyError: If the native error mapping lacks code or message.