Exception: AdsCommon::Errors::AuthError
- Defined in:
- lib/ads_common/errors.rb
Overview
Raised if an attempt is made to authenticate with missing or wrong information.
Direct Known Subclasses
Instance Attribute Summary collapse
-
#error ⇒ Object
readonly
Returns the value of attribute error.
-
#info ⇒ Object
readonly
Returns the value of attribute info.
Instance Method Summary collapse
-
#initialize(message = self.class.to_s, error = nil, info = nil) ⇒ AuthError
constructor
A new instance of AuthError.
Constructor Details
#initialize(message = self.class.to_s, error = nil, info = nil) ⇒ AuthError
Returns a new instance of AuthError.
34 35 36 37 |
# File 'lib/ads_common/errors.rb', line 34 def initialize( = self.class.to_s, error = nil, info = nil) super() @error, @info = error, info end |
Instance Attribute Details
#error ⇒ Object (readonly)
Returns the value of attribute error.
33 34 35 |
# File 'lib/ads_common/errors.rb', line 33 def error @error end |
#info ⇒ Object (readonly)
Returns the value of attribute info.
33 34 35 |
# File 'lib/ads_common/errors.rb', line 33 def info @info end |