class NumerousError

NumerousError

Exceptions indicate errors from the server

Attributes

code[RW]
details[RW]

Public Class Methods

new(msg, code, details) click to toggle source

initialize a NumerousError

@param msg

StandardError message attribute

@!attribute code

HTTP error code (e.g., 404)

@!attribute details

hash containing more ad-hoc information, most usefully :id which
is the URL that was used in the request to the server
Calls superclass method
# File lib/numerousapp.rb, line 61
def initialize(msg, code, details)
    super(msg)
    @code = code
    @details = details
end