Exception: Statsig::NetworkError
- Inherits:
-
StandardError
- Object
- StandardError
- Statsig::NetworkError
- Defined in:
- lib/network.rb
Instance Attribute Summary collapse
-
#http_code ⇒ Object
readonly
Returns the value of attribute http_code.
Instance Method Summary collapse
-
#initialize(msg = nil, http_code = nil) ⇒ NetworkError
constructor
A new instance of NetworkError.
Constructor Details
#initialize(msg = nil, http_code = nil) ⇒ NetworkError
Returns a new instance of NetworkError.
14 15 16 17 |
# File 'lib/network.rb', line 14 def initialize(msg = nil, http_code = nil) super(msg) @http_code = http_code end |
Instance Attribute Details
#http_code ⇒ Object (readonly)
Returns the value of attribute http_code.
12 13 14 |
# File 'lib/network.rb', line 12 def http_code @http_code end |