Exception: CustomErrors::AuthenticationError
- Inherits:
-
StandardError
- Object
- StandardError
- CustomErrors::AuthenticationError
- Defined in:
- lib/helpers/custom_errors.rb
Instance Method Summary collapse
-
#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
constructor
A new instance of AuthenticationError.
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 |