class Jahuty::Exception::Error

Thrown when a client- or server-error occurs.

Attributes

problem[R]

Public Class Methods

new(problem) click to toggle source
Calls superclass method
# File lib/jahuty/exception/error.rb, line 9
def initialize(problem)
  @problem = problem

  super
end

Public Instance Methods

message() click to toggle source
# File lib/jahuty/exception/error.rb, line 15
def message
  "The API responded with #{@problem.status}, #{@problem.type}: #{@problem.detail}"
end