Exception: FeedBooks::UnauthenticatedError

Inherits:
StandardError
  • Object
show all
Defined in:
lib/ruby-feedbooks.rb

Overview

Error class when not authenticated

Direct Known Subclasses

WrongCredentialsError

Instance Method Summary collapse

Constructor Details

#initialize(m = nil) ⇒ UnauthenticatedError

Returns a new instance of UnauthenticatedError.



32
33
34
# File 'lib/ruby-feedbooks.rb', line 32

def initialize(m=nil)
       super(m.nil? ? "You are not connected (no user/password)": m)
end