Exception: KubeException
- Inherits:
-
Exception
- Object
- Exception
- KubeException
- Defined in:
- lib/kubeclient/kube_exception.rb
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.
4 5 6 7 |
# File 'lib/kubeclient/kube_exception.rb', line 4 def initialize(error_code, ) @error_code = error_code @message = end |
Instance Attribute Details
#error_code ⇒ Object (readonly)
Returns the value of attribute error_code.
2 3 4 |
# File 'lib/kubeclient/kube_exception.rb', line 2 def error_code @error_code end |
#message ⇒ Object (readonly)
Returns the value of attribute message.
2 3 4 |
# File 'lib/kubeclient/kube_exception.rb', line 2 def @message end |
Instance Method Details
#to_s ⇒ Object
9 10 11 |
# File 'lib/kubeclient/kube_exception.rb', line 9 def to_s "HTTP status code " + @error_code.to_s + ", " + @message end |