Exception: OSU::Email::InvalidEmailError
- Inherits:
-
ArgumentError
- Object
- ArgumentError
- OSU::Email::InvalidEmailError
- Defined in:
- lib/osu/email.rb
Overview
Raised when a string is an invalid email
Instance Method Summary collapse
-
#initialize(email) ⇒ InvalidEmailError
constructor
A new instance of InvalidEmailError.
Constructor Details
#initialize(email) ⇒ InvalidEmailError
Returns a new instance of InvalidEmailError.
28 29 30 31 32 |
# File 'lib/osu/email.rb', line 28 def initialize(email) super( "#{email} is not a valid OSU email. It must resemble name.\#@osu.edu" ) end |