Exception: Mangadex::Errors::AuthenticationError

Inherits:
StandardError show all
Defined in:
lib/errors.rb

Direct Known Subclasses

UnauthorizedError

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(response) ⇒ AuthenticationError

Returns a new instance of AuthenticationError.



25
26
27
# File 'lib/errors.rb', line 25

def initialize(response)
  @response = response
end

Instance Attribute Details

#responseObject

Returns the value of attribute response.



22
23
24
# File 'lib/errors.rb', line 22

def response
  @response
end

Instance Method Details

#messageObject



30
31
32
# File 'lib/errors.rb', line 30

def message
  "Your username or password may not be correct."
end