Exception: Riki::RikiError

Inherits:
StandardError
  • Object
show all
Defined in:
lib/riki/errors.rb,
lib/riki/errors.rb

Overview

Riki Errors

Generic Riki exception class.

Direct Known Subclasses

NotFound, Unauthorized

Constant Summary collapse

ERRORS =
{
  :readapidenied => Unauthorized
}

Class Method Summary collapse

Class Method Details

.lookup(code) ⇒ Object



7
8
9
# File 'lib/riki/errors.rb', line 7

def lookup(code)
  ERRORS[code.to_sym] || RikiError
end