class ChgkRating::Error

Constants

BadRequest
ClientError
ERRORS
EagerLoadingNotSupported
NotArrayType
NotFound
NotHashType
NotImplemented
ServerError

Public Class Methods

from_response(body) click to toggle source

Create a new error from an HTTP response

# File lib/chgk_rating/error.rb, line 36
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/chgk_rating/error.rb, line 42
def initialize(message = '')
  super(message)
end