Exception: Dao::Error::Result

Inherits:
Dao::Error
  • Object
show all
Defined in:
lib/dao/exceptions.rb

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Attribute Details

#resultObject

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