Exception: Kobako::BytecodeError

Inherits:
SandboxError show all
Defined in:
lib/kobako/errors.rb

Overview

docs/behavior.md Error Classes: BytecodeError is the SandboxError subclass raised when a ‘#preload(binary:)` snippet fails structural validation during the first invocation’s snippet replay against a fresh ‘mrb_state` (E-37 RITE version mismatch, E-38 corrupt body). Bytecode that loads cleanly and then raises at top level is E-36 and surfaces as plain `SandboxError` with the natural mruby class preserved. Inherits from SandboxError so a single `rescue Kobako::SandboxError` covers both source and bytecode snippet failures while callers wanting bytecode-specific handling can `rescue Kobako::BytecodeError` directly.

Instance Attribute Summary

Attributes inherited from SandboxError

#backtrace_lines, #details, #klass, #origin

Method Summary

Methods inherited from SandboxError

#initialize

Constructor Details

This class inherits a constructor from Kobako::SandboxError