Exception: Evolis::PremiumSdk::Error::ServerError
- Inherits:
-
StandardError
- Object
- StandardError
- Evolis::PremiumSdk::Error::ServerError
- Defined in:
- lib/evolis/premium_sdk/error.rb
Instance Attribute Summary collapse
-
#code ⇒ Object
readonly
Returns the value of attribute code.
-
#response_error ⇒ Object
readonly
Returns the value of attribute response_error.
Instance Method Summary collapse
-
#initialize(code, message) ⇒ ServerError
constructor
A new instance of ServerError.
Constructor Details
#initialize(code, message) ⇒ ServerError
Returns a new instance of ServerError.
19 20 21 22 23 |
# File 'lib/evolis/premium_sdk/error.rb', line 19 def initialize(code, ) @code = code @response_error = super("Server error #{code}: #{}") end |
Instance Attribute Details
#code ⇒ Object (readonly)
Returns the value of attribute code.
17 18 19 |
# File 'lib/evolis/premium_sdk/error.rb', line 17 def code @code end |
#response_error ⇒ Object (readonly)
Returns the value of attribute response_error.
17 18 19 |
# File 'lib/evolis/premium_sdk/error.rb', line 17 def response_error @response_error end |