Exception: KubeException
- Inherits:
-
Exception
- Object
- Exception
- KubeException
- Defined in:
- lib/kubeclient/kube_exception.rb
Overview
Kubernetes HTTP Exceptions
Instance Attribute Summary collapse
-
#error_code ⇒ Object
readonly
Returns the value of attribute error_code.
-
#message ⇒ Object
readonly
Returns the value of attribute message.
Instance Method Summary collapse
-
#initialize(error_code, message) ⇒ KubeException
constructor
A new instance of KubeException.
- #to_s ⇒ Object
Constructor Details
#initialize(error_code, message) ⇒ KubeException
Returns a new instance of KubeException.
5 6 7 8 |
# File 'lib/kubeclient/kube_exception.rb', line 5 def initialize(error_code, ) @error_code = error_code @message = end |
Instance Attribute Details
#error_code ⇒ Object (readonly)
Returns the value of attribute error_code.
3 4 5 |
# File 'lib/kubeclient/kube_exception.rb', line 3 def error_code @error_code end |
#message ⇒ Object (readonly)
Returns the value of attribute message.
3 4 5 |
# File 'lib/kubeclient/kube_exception.rb', line 3 def @message end |
Instance Method Details
#to_s ⇒ Object
10 11 12 |
# File 'lib/kubeclient/kube_exception.rb', line 10 def to_s 'HTTP status code ' + @error_code.to_s + ', ' + @message end |