Exception: Ubcbooker::Error::LoginFailed

Inherits:
StandardError
  • Object
show all
Defined in:
lib/ubcbooker/error.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeLoginFailed

Returns a new instance of LoginFailed.



82
83
84
85
86
87
# File 'lib/ubcbooker/error.rb', line 82

def initialize
  @message = "\nLogin Failed :/\n".red <<
    "Please try logging in with a different username or password\n" <<
    "You can use `-u` flag to update saved accout info"
  super
end

Instance Attribute Details

#messageObject (readonly)

Returns the value of attribute message.



81
82
83
# File 'lib/ubcbooker/error.rb', line 81

def message
  @message
end