Sha256: 8f5f02dc17102e899857bb8320d908f6e82899886318cff6bff00d0f21de75cd
Contents?: true
Size: 343 Bytes
Versions: 1
Compression:
Stored size: 343 Bytes
Contents
module TokenAttr class TooManyAttemptsError < StandardError attr_reader :attribute, :token def initialize(attr_name, token, message = nil) @attribute = attr_name @token = token message ||= "Can't generate unique token for \"#{attr_name}\". Last attempt with \"#{token}\"." super(message) end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
token_attr-0.2.0 | lib/token_attr/errors.rb |