Exception: Contracts::SnapshotError
- Defined in:
- lib/contracts.rb
Direct Known Subclasses
Instance Attribute Summary collapse
-
#field ⇒ Object
readonly
Returns the value of attribute field.
-
#original_exception ⇒ Object
readonly
Returns the value of attribute original_exception.
-
#receiver_class ⇒ Object
readonly
Returns the value of attribute receiver_class.
-
#strategy ⇒ Object
readonly
Returns the value of attribute strategy.
Instance Method Summary collapse
-
#initialize(message = nil, strategy: nil, field: nil, receiver_class: nil, original_exception: nil) ⇒ SnapshotError
constructor
A new instance of SnapshotError.
Methods inherited from Error
Constructor Details
#initialize(message = nil, strategy: nil, field: nil, receiver_class: nil, original_exception: nil) ⇒ SnapshotError
Returns a new instance of SnapshotError.
44 45 46 47 48 49 50 |
# File 'lib/contracts.rb', line 44 def initialize( = nil, strategy: nil, field: nil, receiver_class: nil, original_exception: nil) @strategy = strategy @field = field @receiver_class = receiver_class @original_exception = original_exception super() end |
Instance Attribute Details
#field ⇒ Object (readonly)
Returns the value of attribute field.
42 43 44 |
# File 'lib/contracts.rb', line 42 def field @field end |
#original_exception ⇒ Object (readonly)
Returns the value of attribute original_exception.
42 43 44 |
# File 'lib/contracts.rb', line 42 def original_exception @original_exception end |
#receiver_class ⇒ Object (readonly)
Returns the value of attribute receiver_class.
42 43 44 |
# File 'lib/contracts.rb', line 42 def receiver_class @receiver_class end |
#strategy ⇒ Object (readonly)
Returns the value of attribute strategy.
42 43 44 |
# File 'lib/contracts.rb', line 42 def strategy @strategy end |