Method: Timber::Events::Exception#initialize
- Defined in:
- lib/timber/events/exception.rb
#initialize(attributes) ⇒ Exception
Returns a new instance of Exception.
10 11 12 13 14 |
# File 'lib/timber/events/exception.rb', line 10 def initialize(attributes) @name = attributes[:name] || raise(ArgumentError.new(":name is required")) = attributes[:exception_message] || raise(ArgumentError.new(":exception_message is required")) @backtrace = attributes[:backtrace] end |