Class: HasHelpers::HqException
- Inherits:
-
Object
- Object
- HasHelpers::HqException
- Defined in:
- app/lib/has_helpers/hq_exception.rb
Class Method Summary collapse
Class Method Details
.new(error_class_or_message = nil, message = nil, backtrace: caller) ⇒ Object
5 6 7 8 9 10 11 12 13 14 15 16 |
# File 'app/lib/has_helpers/hq_exception.rb', line 5 def self.new( = nil, = nil, backtrace: caller) if .is_a? Class error_class = else error_class = RuntimeError = .to_s end exception = error_class.new() exception.set_backtrace(backtrace) exception end |