Exception: NexusCli::BadSettingsException
- Inherits:
-
NexusCliError
- Object
- StandardError
- NexusCliError
- NexusCli::BadSettingsException
- Defined in:
- lib/nexus_cli/errors.rb
Instance Method Summary collapse
-
#initialize(body) ⇒ BadSettingsException
constructor
A new instance of BadSettingsException.
- #message ⇒ Object
Methods inherited from NexusCliError
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
#message ⇒ Object
101 102 103 104 105 |
# File 'lib/nexus_cli/errors.rb', line 101 def %{Your global_settings.json file is malformed and could not be uploaded to Nexus. The output from the server was: #{@server_response}} end |