Exception: NexusCli::CreateRepsitoryException

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

Returns a new instance of CreateRepsitoryException.



110
111
112
# File 'lib/nexus_cli/errors.rb', line 110

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

Instance Method Details

#messageObject



114
115
116
117
# File 'lib/nexus_cli/errors.rb', line 114

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