Class: Microsandbox::UnsupportedError
- Inherits:
-
Object
- Object
- Microsandbox::UnsupportedError
- Defined in:
- lib/microsandbox/errors.rb
Overview
As of runtime v0.6.8 the core keys Unsupported errors by a structured
(operation, reason) pair. The native layer renders both into the message
("sandbox.kill is not supported by this backend: ...") and also attaches
them here as structured attributes, mirroring the Python SDK's
UnsupportedError.operation / .hint.
Instance Attribute Summary collapse
-
#hint ⇒ String?
readonly
Why it was rejected / what to use instead.
-
#operation ⇒ String?
readonly
The rejected API in Ruby rendering, e.g.
Instance Attribute Details
#hint ⇒ String? (readonly)
Returns why it was rejected / what to use instead.
103 104 105 |
# File 'lib/microsandbox/errors.rb', line 103 def hint @hint end |
#operation ⇒ String? (readonly)
Returns the rejected API in Ruby rendering, e.g. "sandbox.kill".
101 102 103 |
# File 'lib/microsandbox/errors.rb', line 101 def operation @operation end |