class ApiValve::Error
Constants
- Client
- NotRouted
- Server
Public Class Methods
new(*args)
click to toggle source
Calls superclass method
# File lib/api_valve/error.rb, line 22 def initialize(*args) @options = args.extract_options! super(args.first || default_message) end
Public Instance Methods
code()
click to toggle source
# File lib/api_valve/error.rb, line 27 def code @options[:code] || self.class.code end
title()
click to toggle source
# File lib/api_valve/error.rb, line 31 def title @options[:title] || self.class.title end