Exception: LaserTypeErrorWrapper

Inherits:
TypeError show all
Defined in:
lib/laser/standard_library/exceptions.rb

Overview

Since TypeErrors often have specific semantic meanings, I'd rather use a class for each. But I have to make sure user code isn't impacted by this choice, so we must override #class. TypeError#=== and rescues will still work.

Direct Known Subclasses

LaserReopenedClassAsModuleError, LaserReopenedModuleAsClassError, LaserSuperclassMismatchError

Constant Summary

Constant Summary

Constants inherited from Exception

Exception::BT_FAILURE_MESSAGE

Instance Method Summary (collapse)

Methods inherited from Exception

#backtrace, #initialize, #set_backtrace, #to_s

Constructor Details

This class inherits a constructor from Exception

Instance Method Details

- (Object) class



64
65
66
# File 'lib/laser/standard_library/exceptions.rb', line 64

def class
  TypeError
end