Exception: Howler::Message::Notify

Inherits:
Error
  • Object
show all
Defined in:
lib/howler/exceptions/notify.rb

Instance Attribute Summary collapse

Attributes inherited from Error

#message

Instance Method Summary collapse

Methods inherited from Error

#info

Constructor Details

#initialize(cause, options = {}) ⇒ Notify

Returns a new instance of Notify.



5
6
7
8
9
10
11
12
13
# File 'lib/howler/exceptions/notify.rb', line 5

def initialize(cause, options = {})
  super(options)

  @cause = cause
  @env = {
    'hostname' => `hostname`.chomp,
    'ruby_version' => `ruby -v`.chomp
  }
end

Instance Attribute Details

#causeObject (readonly)

Returns the value of attribute cause.



3
4
5
# File 'lib/howler/exceptions/notify.rb', line 3

def cause
  @cause
end

#envObject (readonly)

Returns the value of attribute env.



3
4
5
# File 'lib/howler/exceptions/notify.rb', line 3

def env
  @env
end