Sha256: 35341cc0629222f9f3d014370992831f241c1d75fffdce012d11f9a2eb19d7ec

Contents?: true

Size: 277 Bytes

Versions: 3

Compression:

Stored size: 277 Bytes

Contents

# frozen_string_literal: true

module Branca
  class VersionError < StandardError; end

  class DecodeError < StandardError
    def to_s
      "Can't decode token"
    end
  end

  class ExpiredTokenError < StandardError
    def to_s
      'Token is expired'
    end
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
branca-ruby-1.0.2 lib/branca/exceptions.rb
branca-ruby-1.0.1 lib/branca/exceptions.rb
branca-ruby-1.0.0 lib/branca/exceptions.rb