jmaple.errors¶
Raise MethodError from a handler to fail the single invocation; the
dispatcher converts it to the standard ["error", {...}, callId] shape per
RFC 8620 §3.6.2. SetError is the per-row error returned inside Foo/set
notCreated / notUpdated / notDestroyed maps.
MethodError ¶
Bases: Exception
A method invocation failed in a way that should be reported per-call.
Wraps to ["error", {"type": <type>, "description": ..., ...}, callId] per
RFC 8620 §3.6.2. Plugins should raise this from within a handler.
SetError ¶
Bases: BaseModel
A single create/update/destroy failure inside a Foo/set response.
Standard error type constants¶
These are the named errors from RFC 8620. Pass to MethodError as the
first positional arg.