Exception: ApiValve::Error

Inherits:
RuntimeError
  • Object
show all
Defined in:
lib/api_valve/error.rb

Constant Summary collapse

Client =
Class.new(self)
Server =
Class.new(self)
NotRouted =
Class.new(self) do
  self.http_status = 404
end

Instance Method Summary collapse

Constructor Details

#initialize(*args) ⇒ Error

Returns a new instance of Error.



9
10
11
12
# File 'lib/api_valve/error.rb', line 9

def initialize(*args)
  @options = args.extract_options!
  super(args.first || default_message)
end