Exception: KPM::NexusFacade::UnexpectedStatusCodeException

Inherits:
StandardError
  • Object
show all
Defined in:
lib/kpm/nexus_helper/nexus_api_calls_v2.rb

Instance Method Summary collapse

Constructor Details

#initialize(code) ⇒ UnexpectedStatusCodeException

Returns a new instance of UnexpectedStatusCodeException.



9
10
11
# File 'lib/kpm/nexus_helper/nexus_api_calls_v2.rb', line 9

def initialize(code)
  @code = code
end

Instance Method Details

#messageObject



13
14
15
# File 'lib/kpm/nexus_helper/nexus_api_calls_v2.rb', line 13

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