Exception: AdsCommon::Errors::AuthError

Inherits:
Error
  • Object
show all
Defined in:
lib/ads_common/errors.rb

Overview

Raised if an attempt is made to authenticate with missing or wrong information.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(message = self.class.to_s, error = nil, info = nil) ⇒ AuthError

Returns a new instance of AuthError.



36
37
38
39
# File 'lib/ads_common/errors.rb', line 36

def initialize(message = self.class.to_s, error = nil, info = nil)
  super(message)
  @error, @info = error, info
end

Instance Attribute Details

#errorObject (readonly)

Returns the value of attribute error.



35
36
37
# File 'lib/ads_common/errors.rb', line 35

def error
  @error
end

#infoObject (readonly)

Returns the value of attribute info.



35
36
37
# File 'lib/ads_common/errors.rb', line 35

def info
  @info
end