Exception: RubyBreaker::Errors::InvalidSubtypeCheck
- Inherits:
-
InternalError
- Object
- Exception
- InternalError
- RubyBreaker::Errors::InvalidSubtypeCheck
- 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
-
#initialize(msg, pos = nil) ⇒ InvalidSubtypeCheck
constructor
A new instance of InvalidSubtypeCheck.
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 |