Exception: Mobiscroll::Connect::ServerError
- Defined in:
- lib/mobiscroll/connect/errors.rb
Instance Attribute Summary collapse
-
#status_code ⇒ Object
readonly
Returns the value of attribute status_code.
Attributes inherited from Error
Instance Method Summary collapse
-
#initialize(message = 'Server error', status_code: nil) ⇒ ServerError
constructor
A new instance of ServerError.
Constructor Details
#initialize(message = 'Server error', status_code: nil) ⇒ ServerError
Returns a new instance of ServerError.
47 48 49 50 |
# File 'lib/mobiscroll/connect/errors.rb', line 47 def initialize( = 'Server error', status_code: nil) super(, code: 'SERVER_ERROR') @status_code = status_code end |
Instance Attribute Details
#status_code ⇒ Object (readonly)
Returns the value of attribute status_code.
45 46 47 |
# File 'lib/mobiscroll/connect/errors.rb', line 45 def status_code @status_code end |