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



107
108
109
# File 'lib/microsandbox/errors.rb', line 107

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"



105
106
107
# File 'lib/microsandbox/errors.rb', line 105

def operation
  @operation
end