Exception: Kobako::BytecodeError
- Inherits:
-
SandboxError
- Object
- StandardError
- Error
- SandboxError
- Kobako::BytecodeError
- Defined in:
- lib/kobako/errors.rb,
sig/kobako/errors.rbs
Overview
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 (RITE
version mismatch or corrupt body). Bytecode that loads cleanly and
then raises at top level 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 included from StructuredError
#backtrace_lines, #details, #klass, #origin