Sha256: e03299c64adfc8300a50cf59c033afd5f20fdbddd7fb595e349bb77105bf2bd4

Contents?: true

Size: 456 Bytes

Versions: 1

Compression:

Stored size: 456 Bytes

Contents

# frozen_string_literal: true

module Dribbble
  module Error
    # Standard error we will inherit
    class Standard < StandardError
      def initialize(message = nil)
        if message&.response
          super message.response
        else
          super(message || self.message)
        end
      end
    end

    class MissingToken < Standard
    end

    class Unauthorized < Standard
    end

    class Unprocessable < Standard
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
dribbble-2.0.0 lib/dribbble/errors.rb