Exception: Train::Error
- Inherits:
-
StandardError
- Object
- StandardError
- Train::Error
- Defined in:
- lib/train/errors.rb
Overview
Base exception for any exception explicitly raised by the Train library.
Direct Known Subclasses
ClientError, PlatformDetectionFailed, TransportError, UnknownCacheType, UserError
Instance Attribute Summary collapse
-
#reason ⇒ Object
readonly
Returns the value of attribute reason.
Instance Method Summary collapse
-
#initialize(message = '', reason = :not_provided) ⇒ Error
constructor
A new instance of Error.
Constructor Details
#initialize(message = '', reason = :not_provided) ⇒ Error
Returns a new instance of Error.
16 17 18 19 |
# File 'lib/train/errors.rb', line 16 def initialize( = '', reason = :not_provided) super() @reason = reason end |
Instance Attribute Details
#reason ⇒ Object (readonly)
Returns the value of attribute reason.
14 15 16 |
# File 'lib/train/errors.rb', line 14 def reason @reason end |