Exception: Msf::Exploit::Remote::HTTP::Kubernetes::Error::UnexpectedStatusCode
- Inherits:
-
ApiError
- Object
- StandardError
- ApiError
- Msf::Exploit::Remote::HTTP::Kubernetes::Error::UnexpectedStatusCode
- Defined in:
- lib/msf/core/exploit/remote/http/kubernetes/error.rb
Instance Attribute Summary collapse
-
#status_code ⇒ Object
readonly
Returns the value of attribute status_code.
Attributes inherited from ApiError
Instance Method Summary collapse
-
#initialize(message: nil, res: nil) ⇒ UnexpectedStatusCode
constructor
A new instance of UnexpectedStatusCode.
Constructor Details
#initialize(message: nil, res: nil) ⇒ UnexpectedStatusCode
Returns a new instance of UnexpectedStatusCode.
62 63 64 65 |
# File 'lib/msf/core/exploit/remote/http/kubernetes/error.rb', line 62 def initialize(message: nil, res: nil) @status_code = res.code super(message: || "Kubernetes ApiError - unexpected response status code #{status_code}", res: res) end |
Instance Attribute Details
#status_code ⇒ Object (readonly)
Returns the value of attribute status_code.
61 62 63 |
# File 'lib/msf/core/exploit/remote/http/kubernetes/error.rb', line 61 def status_code @status_code end |