Exception: Dao::Error::Status
- Inherits:
-
Dao::Error
- Object
- StandardError
- Dao::Error
- Dao::Error::Status
- Defined in:
- lib/dao/exceptions.rb
Instance Attribute Summary collapse
-
#status ⇒ Object
Returns the value of attribute status.
Class Method Summary collapse
Instance Attribute Details
#status ⇒ Object
Returns the value of attribute status.
16 17 18 |
# File 'lib/dao/exceptions.rb', line 16 def status @status end |
Class Method Details
.for(status, *args, &block) ⇒ Object
18 19 20 21 22 |
# File 'lib/dao/exceptions.rb', line 18 def self.for(status, *args, &block) error = new(*args, &block) error.status = status error end |