Exception: NexusCli::UnexpectedStatusCodeException

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(code) ⇒ UnexpectedStatusCodeException

Returns a new instance of UnexpectedStatusCodeException.



136
137
138
# File 'lib/nexus_cli/errors.rb', line 136

def initialize(code)
  @code = code
end

Instance Method Details

#messageObject



140
141
142
# File 'lib/nexus_cli/errors.rb', line 140

def  message
  "The server responded with a #{@code} status code which is unexpected. Please submit a bug."
end