Sha256: a7eb387f50589f8ec5f520765d96b19530768c89950d61e1f2688e2e1ead8312

Contents?: true

Size: 637 Bytes

Versions: 10

Compression:

Stored size: 637 Bytes

Contents

module Transcriptic
  class API
    module Errors
      class Error < StandardError; end

      class ErrorWithResponse < Error
        attr_reader :response

        def initialize(message, response)
          super message
          @response = response
        end
      end

      class Unauthorized < ErrorWithResponse; end
      class VerificationRequired < ErrorWithResponse; end
      class Forbidden < ErrorWithResponse; end
      class NotFound < ErrorWithResponse; end
      class Timeout < ErrorWithResponse; end
      class Locked < ErrorWithResponse; end
      class RequestFailed < ErrorWithResponse; end
    end
  end
end

Version data entries

10 entries across 10 versions & 1 rubygems

Version Path
transcriptic-0.2.10 lib/transcriptic/api/errors.rb
transcriptic-0.2.5 lib/transcriptic/api/errors.rb
transcriptic-0.2.4 lib/transcriptic/api/errors.rb
transcriptic-0.2.3 lib/transcriptic/api/errors.rb
transcriptic-0.2.2 lib/transcriptic/api/errors.rb
transcriptic-0.2.1 lib/transcriptic/api/errors.rb
transcriptic-0.2.0 lib/transcriptic/api/errors.rb
transcriptic-0.1.3 lib/transcriptic/api/errors.rb
transcriptic-0.1.2 lib/transcriptic/api/errors.rb
transcriptic-0.1.0 lib/transcriptic/api/errors.rb