Exception: Msf::Exploit::Remote::HTTP::Kubernetes::Error::InvalidApiError

Inherits:
ApiError
  • Object
show all
Defined in:
lib/msf/core/exploit/remote/http/kubernetes/error.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(message: nil, res: nil) ⇒ InvalidApiError

Returns a new instance of InvalidApiError.



19
20
21
22
# File 'lib/msf/core/exploit/remote/http/kubernetes/error.rb', line 19

def initialize(message: nil, res: nil)
  super(message: message || "Kubernetes InvalidApi - target does not appear to be running Kubernetes, verify configuration", res: res)
  @res = res
end

Instance Attribute Details

#resObject (readonly)

Returns the value of attribute res.



24
25
26
# File 'lib/msf/core/exploit/remote/http/kubernetes/error.rb', line 24

def res
  @res
end