Class: Healthcheck::Error

Inherits:
Object
  • Object
show all
Defined in:
lib/healthcheck/error.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(name, exception, message) ⇒ Error

Returns a new instance of Error.



7
8
9
10
11
# File 'lib/healthcheck/error.rb', line 7

def initialize(name, exception, message)
  @name = name
  @exception = exception.to_s
  @message = message&.squish
end

Instance Attribute Details

#exceptionObject

Returns the value of attribute exception.



5
6
7
# File 'lib/healthcheck/error.rb', line 5

def exception
  @exception
end

#messageObject

Returns the value of attribute message.



5
6
7
# File 'lib/healthcheck/error.rb', line 5

def message
  @message
end

#nameObject

Returns the value of attribute name.



5
6
7
# File 'lib/healthcheck/error.rb', line 5

def name
  @name
end