Class: Healthcheck::Error
- Inherits:
-
Object
- Object
- Healthcheck::Error
- Defined in:
- lib/healthcheck/error.rb
Instance Attribute Summary collapse
-
#exception ⇒ Object
Returns the value of attribute exception.
-
#message ⇒ Object
Returns the value of attribute message.
-
#name ⇒ Object
Returns the value of attribute name.
Instance Method Summary collapse
-
#initialize(name, exception, message) ⇒ Error
constructor
A new instance of Error.
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, ) @name = name @exception = exception.to_s @message = &.squish end |
Instance Attribute Details
#exception ⇒ Object
Returns the value of attribute exception.
5 6 7 |
# File 'lib/healthcheck/error.rb', line 5 def exception @exception end |
#message ⇒ Object
Returns the value of attribute message.
5 6 7 |
# File 'lib/healthcheck/error.rb', line 5 def @message end |
#name ⇒ Object
Returns the value of attribute name.
5 6 7 |
# File 'lib/healthcheck/error.rb', line 5 def name @name end |