Sha256: d7046152bd1f2c8628f1f38aeebb60187dac2bf5b6b91e8a9f5921d663fb8992
Contents?: true
Size: 1.31 KB
Versions: 6
Compression:
Stored size: 1.31 KB
Contents
module TokenMaster # `TokenMaster::Errors` holds all of the error classes used in applying TokenMaster module Errors # The base class for all errors raised by TokenMaster class Error < StandardError; end # Raised when the attributes for a tokenable do not exist. # This could result from a migration not being run or a spelling error class NotTokenable < Error; end # Raised when the required parameters for a tokenable are not provided. # This typically happens with reset and invite tokenables, that might require both `password` and `password_confirmation` fields, # but only one is provided to the method class MissingRequiredParams < Error; end # Raised when the tokenable instance is not found class TokenNotFound < Error; end # Raised when the status of the token is reviewed, but the tokenable action has already been completed class TokenCompleted < Error; end # Raised when the token has expired based on the tokenable's `token_lifetime` class TokenExpired < Error; end # Raised when the tokenable instructions have already been sent when calling `send_tokenable_instructions!` class TokenSent < Error; end # Raised when the tokenable model instance does not have a token set for a tokenable action class TokenNotSet < Error; end end end
Version data entries
6 entries across 6 versions & 1 rubygems