Exception: OSU::Email::InvalidEmailError

Inherits:
ArgumentError
  • Object
show all
Defined in:
lib/osu/email.rb

Overview

Raised when a string is an invalid email

Instance Method Summary collapse

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