class OkLinker::Error

Constants

BadRequest

HTTP status code 400 - invalid params

ClientError
ERRORS
Forbidden

HTTP status code 403 - invalid token

NotImplemented

HTTP status code 501 - not implemented

ServerError
Unauthorized

HTTP status code 401 - not authorized

Public Class Methods

from_response(body) click to toggle source

Create a new error from an HTTP response

# File lib/ok_linker/error.rb, line 27
def from_response(body)
  new(body.to_s)
end
new(message = '') click to toggle source

Initializes a new Error object

Calls superclass method
# File lib/ok_linker/error.rb, line 33
def initialize(message = '')
  super(message)
end