Exception: Appom::DriverOperationError
- Inherits:
-
DriverError
- Object
- StandardError
- AppomError
- DriverError
- Appom::DriverOperationError
- Defined in:
- lib/appom/exceptions.rb
Overview
Raised when driver operations fail
Instance Attribute Summary collapse
-
#cause ⇒ Object
readonly
Returns the value of attribute cause.
-
#operation ⇒ Object
readonly
Returns the value of attribute operation.
Attributes inherited from AppomError
Instance Method Summary collapse
-
#initialize(operation, cause = nil) ⇒ DriverOperationError
constructor
A new instance of DriverOperationError.
Methods inherited from AppomError
Constructor Details
#initialize(operation, cause = nil) ⇒ DriverOperationError
Returns a new instance of DriverOperationError.
83 84 85 86 87 88 89 |
# File 'lib/appom/exceptions.rb', line 83 def initialize(operation, cause = nil) @operation = operation @cause = cause = "Driver operation '#{operation}' failed" += ": #{cause}" if cause super(, { operation: operation, cause: cause }) end |
Instance Attribute Details
#cause ⇒ Object (readonly)
Returns the value of attribute cause.
81 82 83 |
# File 'lib/appom/exceptions.rb', line 81 def cause @cause end |
#operation ⇒ Object (readonly)
Returns the value of attribute operation.
81 82 83 |
# File 'lib/appom/exceptions.rb', line 81 def operation @operation end |