Exception: CustomErrors::AuthenticationError

Inherits:
StandardError
  • Object
show all
Defined in:
lib/helpers/custom_errors.rb

Instance Method Summary collapse

Constructor Details

#initialize(msg = "You need to call #authenticate first and pass in your email and password. For example: Teachable::Stats.authenticate(email: '[email protected]', password: 'password')") ⇒ AuthenticationError

Returns a new instance of AuthenticationError.



3
4
5
# File 'lib/helpers/custom_errors.rb', line 3

def initialize(msg="You need to call #authenticate first and pass in your email and password. For example: Teachable::Stats.authenticate(email: '[email protected]', password: 'password')")
  super
end