Exception: RubyBreaker::Errors::InternalError

Inherits:
Exception
  • Object
show all
Defined in:
lib/rubybreaker/debug/error.rb

Overview

This class is a base class for any internal errors. It should be used to inform the faults within the program and not related to user programs.

Direct Known Subclasses

InvalidSubtypeCheck, InvalidTypeConstruction

Instance Method Summary collapse

Constructor Details

#initialize(msg) ⇒ InternalError

Returns a new instance of InternalError.



15
16
17
18
19
# File 'lib/rubybreaker/debug/error.rb', line 15

def initialize(msg)
  @level = :FATAL if @level == nil 
  msg = "[#{@level}] #{msg} at #{@pos}" 
  super(msg)
end