Sha256: 94997cfdd0fa0078429d0c92c7d25650cb27b09f57c84236108543e7a239eca6

Contents?: true

Size: 460 Bytes

Versions: 1

Compression:

Stored size: 460 Bytes

Contents

module Subjoin
  class Error < StandardError; end

  class NoOverriddenRootError < Error
    def message
      "You must derive a class from Subjoin::Resource and override Resource#Root to return the root URL of the API you are using. This derived class should, in turn be used as the base class for your other custom classes."
    end
  end

  class ResponseError < Error; end

  class UnexpectedTypeError < Error; end

  class SubclassError < Error; end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
subjoin-0.2.1 lib/subjoin/errors.rb