Exception: NexusCli::BadSettingsException

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

Instance Method Summary collapse

Methods inherited from NexusCliError

status_code

Constructor Details

#initialize(body) ⇒ BadSettingsException

Returns a new instance of BadSettingsException.



97
98
99
# File 'lib/nexus_cli/errors.rb', line 97

def initialize(body)
  @server_response = JSON.pretty_generate(JSON.parse(body))
end

Instance Method Details

#messageObject



101
102
103
104
105
# File 'lib/nexus_cli/errors.rb', line 101

def message
  %{Your global_settings.json file is malformed and could not be uploaded to Nexus.
The output from the server was:
#{@server_response}}
end