lib/branca/exceptions.rb in branca-ruby-1.0.2 vs lib/branca/exceptions.rb in branca-ruby-1.0.3

- old
+ new

@@ -1,16 +1,18 @@ # frozen_string_literal: true module Branca - class VersionError < StandardError; end + class Error < StandardError; end + + class VersionError < Error; end - class DecodeError < StandardError + class DecodeError < Error def to_s "Can't decode token" end end - class ExpiredTokenError < StandardError + class ExpiredTokenError < Error def to_s 'Token is expired' end end end