Exception: Dao::Error::Result
- Inherits:
-
Dao::Error
- Object
- StandardError
- Dao::Error
- Dao::Error::Result
- Defined in:
- lib/dao/exceptions.rb
Instance Attribute Summary collapse
-
#result ⇒ Object
Returns the value of attribute result.
Class Method Summary collapse
Instance Attribute Details
#result ⇒ Object
Returns the value of attribute result.
6 7 8 |
# File 'lib/dao/exceptions.rb', line 6 def result @result end |
Class Method Details
.for(result, *args, &block) ⇒ Object
8 9 10 11 12 |
# File 'lib/dao/exceptions.rb', line 8 def self.for(result, *args, &block) error = new(*args, &block) error.result = result error end |