Module: Stoplight::Error

Defined in:
lib/stoplight/error.rb

Constant Summary collapse

HANDLER =
lambda do |error|
  raise error if AVOID_RESCUING.any? { |klass| error.is_a?(klass) }
end
AVOID_RESCUING =
[
  NoMemoryError,
  ScriptError,
  SecurityError,
  SignalException,
  SystemExit,
  SystemStackError
].freeze
Base =
Class.new(StandardError)
RedLight =
Class.new(Base)