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.
36 37 38 39 |
# File 'lib/ads_common/errors.rb', line 36 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.
35 36 37 |
# File 'lib/ads_common/errors.rb', line 35 def error @error end |
#info ⇒ Object (readonly)
Returns the value of attribute info.
35 36 37 |
# File 'lib/ads_common/errors.rb', line 35 def info @info end |