Exception: Pingpp::ChannelError
- Inherits:
-
PingppError
- Object
- StandardError
- PingppError
- Pingpp::ChannelError
- Defined in:
- lib/pingpp/errors/channel_error.rb
Instance Attribute Summary collapse
-
#code ⇒ Object
Returns the value of attribute code.
-
#param ⇒ Object
Returns the value of attribute param.
Attributes inherited from PingppError
#http_body, #http_headers, #http_status, #json_body, #message
Instance Method Summary collapse
-
#initialize(message, code, param = nil, http_status = nil, http_body = nil, json_body = nil, http_headers = nil) ⇒ ChannelError
constructor
A new instance of ChannelError.
Methods inherited from PingppError
Constructor Details
#initialize(message, code, param = nil, http_status = nil, http_body = nil, json_body = nil, http_headers = nil) ⇒ ChannelError
Returns a new instance of ChannelError.
6 7 8 9 10 11 |
# File 'lib/pingpp/errors/channel_error.rb', line 6 def initialize(, code, param=nil, http_status=nil, http_body=nil, json_body=nil, http_headers=nil) super(, http_status, http_body, json_body, http_headers) @code = code @param = param end |
Instance Attribute Details
#code ⇒ Object
Returns the value of attribute code.
4 5 6 |
# File 'lib/pingpp/errors/channel_error.rb', line 4 def code @code end |
#param ⇒ Object
Returns the value of attribute param.
3 4 5 |
# File 'lib/pingpp/errors/channel_error.rb', line 3 def param @param end |