Sha256: e3fff3c0c983c1de32077e5d1288121da43fb635923881682dea539a0092a71a

Contents?: true

Size: 813 Bytes

Versions: 8

Compression:

Stored size: 813 Bytes

Contents

module Doorkeeper
  module Errors
    class DoorkeeperError < StandardError
      def type
        message
      end
    end

    class InvalidAuthorizationStrategy < DoorkeeperError
      def type
        :unsupported_response_type
      end
    end

    class InvalidTokenReuse < DoorkeeperError
      def type
        :invalid_request
      end
    end

    class InvalidGrantReuse < DoorkeeperError
      def type
        :invalid_grant
      end
    end

    class InvalidTokenStrategy < DoorkeeperError
      def type
        :unsupported_grant_type
      end
    end

    class MissingRequestStrategy < DoorkeeperError
      def type
        :invalid_request
      end
    end

    class UnableToGenerateToken < DoorkeeperError
    end

    class TokenGeneratorNotFound < DoorkeeperError
    end
  end
end

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
doorkeeper-4.4.3 lib/doorkeeper/errors.rb
doorkeeper-4.4.2 lib/doorkeeper/errors.rb
doorkeeper-4.4.1 lib/doorkeeper/errors.rb
doorkeeper-4.4.0 lib/doorkeeper/errors.rb
doorkeeper-4.3.2 lib/doorkeeper/errors.rb
doorkeeper-4.3.1 lib/doorkeeper/errors.rb
doorkeeper-4.3.0 lib/doorkeeper/errors.rb
doorkeeper-4.2.6 lib/doorkeeper/errors.rb