Method: KStor::Error.for_code
- Defined in:
- lib/kstor/error.rb
.for_code(code, *args) ⇒ Object
Create a new error for this code.
35 36 37 |
# File 'lib/kstor/error.rb', line 35 def for_code(code, *args) @registry[code].new(*args) end |