Package io.skodjob.testframe.clients
Class KubeClusterException
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
io.skodjob.testframe.clients.KubeClusterException
- All Implemented Interfaces:
Serializable
- Direct Known Subclasses:
KubeClusterException.AlreadyExists,KubeClusterException.InvalidResource,KubeClusterException.NotFound
Custom exception class for handling exceptions related to Kubernetes cluster operations.
This exception class encapsulates the result of a failed execution attempt, providing
detailed information about the error that occurred during Kubernetes cluster operations.
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classException class indicating that the resource to be created already exists in the Kubernetes cluster.static classException class indicating that the resource provided to the Kubernetes cluster is invalid.static classException class indicating that a requested resource was not found in the Kubernetes cluster. -
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionKubeClusterException(ExecResult result, String s) Constructs a new KubeClusterException with the specified detail message and execution result.KubeClusterException(Throwable cause) Constructs a new KubeClusterException with the specified cause. -
Method Summary
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Field Details
-
result
results
-
-
Constructor Details
-
KubeClusterException
Constructs a new KubeClusterException with the specified detail message and execution result.- Parameters:
result- The execution result that led to the exception. Contains details about the failure.s- The detail message. The detail message is saved for later retrieval by the getMessage() method.
-
KubeClusterException
Constructs a new KubeClusterException with the specified cause.- Parameters:
cause- The cause (which is saved for later retrieval by the getCause() method). (A null value is permitted, and indicates that the cause is nonexistent or unknown.)
-