Exception: NexusCli::UpdateUserException

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) ⇒ UpdateUserException

Returns a new instance of UpdateUserException.



177
178
179
# File 'lib/nexus_cli/errors.rb', line 177

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

Instance Method Details

#messageObject



181
182
183
184
# File 'lib/nexus_cli/errors.rb', line 181

def message
  %{Your update user command failed due to the following:
#{@server_response}}
end