Exception: NexusCli::NexusHTTP404

Inherits:
NexusCliError show all
Defined in:
lib/nexus_cli/errors.rb

Instance Method Summary collapse

Methods inherited from NexusCliError

status_code

Constructor Details

#initialize(body) ⇒ NexusHTTP404

Returns a new instance of NexusHTTP404.



249
250
251
# File 'lib/nexus_cli/errors.rb', line 249

def initialize(body)
  @server_response = body
end

Instance Method Details

#messageObject



253
254
255
256
# File 'lib/nexus_cli/errors.rb', line 253

def message
  %{Your command failed and the server returned an error code. The output of the response was:
#{@server_response}}
end