Exception: Mobiscroll::Connect::NetworkError
- Defined in:
- lib/mobiscroll/connect/errors.rb
Instance Attribute Summary collapse
-
#cause ⇒ Object
readonly
Returns the value of attribute cause.
Attributes inherited from Error
Instance Method Summary collapse
-
#initialize(message = 'Network error', cause: nil) ⇒ NetworkError
constructor
A new instance of NetworkError.
Constructor Details
#initialize(message = 'Network error', cause: nil) ⇒ NetworkError
Returns a new instance of NetworkError.
56 57 58 59 |
# File 'lib/mobiscroll/connect/errors.rb', line 56 def initialize( = 'Network error', cause: nil) super(, code: 'NETWORK_ERROR') @cause = cause end |
Instance Attribute Details
#cause ⇒ Object (readonly)
Returns the value of attribute cause.
54 55 56 |
# File 'lib/mobiscroll/connect/errors.rb', line 54 def cause @cause end |