Exception: NexusCli::CreateUserException

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

Returns a new instance of CreateUserException.



154
155
156
# File 'lib/nexus_cli/errors.rb', line 154

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

Instance Method Details

#messageObject



158
159
160
161
# File 'lib/nexus_cli/errors.rb', line 158

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