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
#initialize(file, line, message, exception) ⇒ Error
Returns a new instance of Error.
8 9 10 11 |
# File 'lib/lookout/results/error.rb', line 8 def initialize(file, line, , exception) super file, line , @exception = , Exception.new(exception) end |
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 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 |