Sha256: 2a71c953e5c4efb0b8f2a7b5b942e4f4918ea26dde8bc7d5a2c727a769f4591f
Contents?: true
Size: 760 Bytes
Versions: 32
Compression:
Stored size: 760 Bytes
Contents
module Her module Errors class PathError < StandardError attr_reader :missing_parameter def initialize(message, missing_parameter=nil) super(message) @missing_parameter = missing_parameter end end class AssociationUnknownError < StandardError end class ResponseError < StandardError def self.for(status_code) case status_code when 404 RecordNotFound when 422 RecordInvalid else self end end end class ParseError < ResponseError end class RemoteServerError < ResponseError end class RecordNotFound < ResponseError end class RecordInvalid < ResponseError end end end
Version data entries
32 entries across 32 versions & 1 rubygems