Exception: Microsandbox::Error
- Inherits:
-
StandardError
- Object
- StandardError
- Microsandbox::Error
- Defined in:
- lib/microsandbox/errors.rb
Overview
Base class for every error raised by the SDK. Mirrors the Python SDK’s flat hierarchy (‘sdk/python/microsandbox/errors.py`): each class carries a stable `#code`. The native layer raises the matching subclass based on the core `MicrosandboxError` variant; unmapped variants surface as `Error`.
Constant Summary collapse
- CODE =
"microsandbox-error"
Class Method Summary collapse
-
.code ⇒ Object
The stable, machine-readable error code for this class.
Instance Method Summary collapse
-
#code ⇒ Object
The stable, machine-readable error code for this instance.
Class Method Details
.code ⇒ Object
The stable, machine-readable error code for this class.
12 13 14 |
# File 'lib/microsandbox/errors.rb', line 12 def self.code const_get(:CODE) end |
Instance Method Details
#code ⇒ Object
The stable, machine-readable error code for this instance.
17 18 19 |
# File 'lib/microsandbox/errors.rb', line 17 def code self.class.code end |