Exception: Jenkins::Build::Client::InvalidResponse
- Inherits:
-
StandardError
- Object
- StandardError
- Jenkins::Build::Client::InvalidResponse
- Defined in:
- lib/jenkins/build/client.rb
Instance Attribute Summary collapse
-
#code ⇒ Object
readonly
Returns the value of attribute code.
-
#message ⇒ Object
readonly
Returns the value of attribute message.
Instance Method Summary collapse
-
#initialize(response) ⇒ InvalidResponse
constructor
A new instance of InvalidResponse.
Constructor Details
#initialize(response) ⇒ InvalidResponse
Returns a new instance of InvalidResponse.
51 52 53 54 55 56 |
# File 'lib/jenkins/build/client.rb', line 51 def initialize(response) @code = response.code @message = response. @response = response super("Unexpected HTTP Response: #{@message}") end |
Instance Attribute Details
#code ⇒ Object (readonly)
Returns the value of attribute code.
49 50 51 |
# File 'lib/jenkins/build/client.rb', line 49 def code @code end |
#message ⇒ Object (readonly)
Returns the value of attribute message.
49 50 51 |
# File 'lib/jenkins/build/client.rb', line 49 def @message end |