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.



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

def initialize(code)
  @code = code
end

Instance Method Details

#messageObject



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

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