Class: Microsandbox::UnsupportedError

Inherits:
Object
  • Object
show all
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

Instance Attribute Details

#hintString? (readonly)

Returns why it was rejected / what to use instead.

Returns:

  • (String, nil)

    why it was rejected / what to use instead



103
104
105
# File 'lib/microsandbox/errors.rb', line 103

def hint
  @hint
end

#operationString? (readonly)

Returns the rejected API in Ruby rendering, e.g. "sandbox.kill".

Returns:

  • (String, nil)

    the rejected API in Ruby rendering, e.g. "sandbox.kill"



101
102
103
# File 'lib/microsandbox/errors.rb', line 101

def operation
  @operation
end