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.



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

def initialize(code)
  @code = code
end

Instance Method Details

#messageObject



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

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