Exception: FormatParser::RemoteIO::UpstreamError

Inherits:
StandardError
  • Object
show all
Defined in:
lib/remote_io.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(status_code, message) ⇒ UpstreamError

Returns a new instance of UpstreamError.



10
11
12
13
# File 'lib/remote_io.rb', line 10

def initialize(status_code, message)
  @status_code = Integer(status_code)
  super(message)
end

Instance Attribute Details

#status_codeObject (readonly)

Returns Integer.

Returns:

  • Integer



8
9
10
# File 'lib/remote_io.rb', line 8

def status_code
  @status_code
end