innovate.NativeError
All current Python definitions
View source · Source file SHA-256: 522871fe0b61b840b5f85b8f278beb2b79c7afd68645265ae3a68983d56d74e4
Signature
Section titled “Signature”class NativeError(ValueError): ...Expose a native request failure as a Python ValueError subtype.
Attributes
Section titled “Attributes”code: Machine-readable error code copied from the native error envelope.validation: Structured validation details when supplied by the kernel, otherwiseNone. The nested object is not deep-copied.
__init__
Section titled “__init__”View source · Source file SHA-256: 522871fe0b61b840b5f85b8f278beb2b79c7afd68645265ae3a68983d56d74e4
def __init__(self, error: dict[str, Any]): ...Construct an exception from the kernel’s error object.
Parameters
Section titled “Parameters”error: Mapping containingcodeandmessageand, optionally,validationdetails. Its code is converted to a string.
Raises
Section titled “Raises”KeyError: If the native error mapping lackscodeormessage.