Sha256: 7166f20b0b664d09a1ac5fda73acdb5ddfcf892e5c8afaefa70800dec940f69a
Contents?: true
Size: 616 Bytes
Versions: 3
Compression:
Stored size: 616 Bytes
Contents
module Acfs # Acfs base error. # class Error < StandardError end # Response error containing the responsible response object. # class ErroneousResponse < Error attr_accessor :response def initialize(data = {}) self.response = data[:response] end end # Resource not found error raised on a 404 response # class ResourceNotFound < ErroneousResponse end class InvalidResource < ErroneousResponse attr_accessor :errors def initialize(data) self.errors = data[:errors] super end end class RealRequestsNotAllowedError < StandardError; end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
acfs-0.18.0 | lib/acfs/errors.rb |
acfs-0.17.0 | lib/acfs/errors.rb |
acfs-0.16.0 | lib/acfs/errors.rb |