Exception: OsCtl::Repo::NetworkError
- Inherits:
-
StandardError
- Object
- StandardError
- OsCtl::Repo::NetworkError
- Defined in:
- lib/osctl/repo/exceptions.rb
Instance Attribute Summary collapse
-
#original_exception ⇒ Object
readonly
Returns the value of attribute original_exception.
Instance Method Summary collapse
-
#initialize(exception) ⇒ NetworkError
constructor
A new instance of NetworkError.
Constructor Details
#initialize(exception) ⇒ NetworkError
Returns a new instance of NetworkError.
27 28 29 30 31 32 33 34 35 36 37 |
# File 'lib/osctl/repo/exceptions.rb', line 27 def initialize(exception) @original_exception = exception super( if exception.respond_to?(:message) exception. else exception.to_s end ) end |
Instance Attribute Details
#original_exception ⇒ Object (readonly)
Returns the value of attribute original_exception.
25 26 27 |
# File 'lib/osctl/repo/exceptions.rb', line 25 def original_exception @original_exception end |