Exception: Pingpp::ChannelError

Inherits:
PingppError
  • Object
show all
Defined in:
lib/pingpp/errors/channel_error.rb

Instance Attribute Summary collapse

Attributes inherited from PingppError

#http_body, #http_headers, #http_status, #json_body, #message

Instance Method Summary collapse

Methods inherited from PingppError

#to_s

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(message, code, param=nil, http_status=nil, http_body=nil,
               json_body=nil, http_headers=nil)
  super(message, http_status, http_body, json_body, http_headers)
  @code = code
  @param = param
end

Instance Attribute Details

#codeObject

Returns the value of attribute code.



4
5
6
# File 'lib/pingpp/errors/channel_error.rb', line 4

def code
  @code
end

#paramObject

Returns the value of attribute param.



3
4
5
# File 'lib/pingpp/errors/channel_error.rb', line 3

def param
  @param
end