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, CommandTimeoutReached, PlatformDetectionFailed, PlatformUuidDetectionFailed, 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.
15 16 17 18 |
# File 'lib/train/errors.rb', line 15 def initialize( = "", reason = :not_provided) super() @reason = reason end |
Instance Attribute Details
#reason ⇒ Object (readonly)
Returns the value of attribute reason.
13 14 15 |
# File 'lib/train/errors.rb', line 13 def reason @reason end |