Sha256: 84314095c554643c3e7560add808f26f488bff6a904bebb28b982b5e4222e8da
Contents?: true
Size: 510 Bytes
Versions: 7
Compression:
Stored size: 510 Bytes
Contents
module HaveAPI::Client class ProtocolError < StandardError ; end class ActionFailed < StandardError def initialize(response) @response = response end def message "#{@response.action.name} failed: #{@response.message}" end end class ValidationError < ActionFailed attr_reader :errors def initialize(action, errors) @action = action @errors = errors end def message "#{@action.name} failed: input parameters not valid" end end end
Version data entries
7 entries across 7 versions & 1 rubygems