Skip to content

Class BSV::Script::ScriptError

Inherits: StandardError

Error raised during script execution.

Carries a machine-readable error code from {ScriptErrorCode} alongside a human-readable message.

Attributes

code [R]

  • @return [Symbol] the error code from {ScriptErrorCode}

Public Instance Methods

initialize(code, message = nil)

  • @param code [Symbol] error code from {ScriptErrorCode}
  • @param message [String, nil] human-readable description (auto-generated from code if omitted)
  • @return [ScriptError] a new instance of ScriptError