Exception: RubyBreaker::Errors::InvalidSubtypeCheck

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

Overview

This error is thrown when a subtype check is not even appropriate for two given types. It should NOT BE USED for any check failures.

Instance Method Summary collapse

Constructor Details

#initialize(msg, pos = nil) ⇒ InvalidSubtypeCheck

Returns a new instance of InvalidSubtypeCheck.



29
30
31
32
33
# File 'lib/rubybreaker/debug/error.rb', line 29

def initialize(msg,pos=nil)
  @level = :FATAL
  @pos = pos ? pos : Position.convert_caller_to_pos(caller(1))
  super("InvalidSubtypingCheck: #{msg}")
end