class Nomad::HTTPConnectionError

Attributes

address[R]

Public Class Methods

new(address, exception) click to toggle source
Calls superclass method
# File lib/nomad/errors.rb, line 7
    def initialize(address, exception)
      @address = address
      @exception = exception

      super <<-EOH
The Nomad server at `#{address}' is not currently
accepting connections. Please ensure that the server is running and that your
authentication information is correct.

The original error was `#{exception.class}'. Additional information (if any) is
shown below:

    #{exception.message}

Please refer to the documentation for more help.
EOH
    end

Public Instance Methods

original_exception() click to toggle source
# File lib/nomad/errors.rb, line 25
def original_exception
  @exception
end