Class: Lookout::Results::Error
- Includes:
- Lookout::Result
- Defined in:
- lib/lookout/results/error.rb
Defined Under Namespace
Classes: Exception
Instance Attribute Summary collapse
-
#exception ⇒ Object
readonly
Returns the value of attribute exception.
-
#message ⇒ Object
readonly
Returns the value of attribute message.
Attributes included from Lookout::Result
Instance Method Summary collapse
-
#initialize(file, line, message, exception) ⇒ Error
constructor
A new instance of Error.
- #to_s ⇒ Object
Constructor Details
Instance Attribute Details
#exception ⇒ Object (readonly)
Returns the value of attribute exception.
13 14 15 |
# File 'lib/lookout/results/error.rb', line 13 def exception @exception end |
#message ⇒ Object (readonly)
Returns the value of attribute message.
13 14 15 |
# File 'lib/lookout/results/error.rb', line 13 def @message end |
Instance Method Details
#to_s ⇒ Object
15 16 17 |
# File 'lib/lookout/results/error.rb', line 15 def to_s [super, , exception].compact.join(': ') end |