Show / Hide Table of Contents

Class KubernetesException

Represents an error message returned by the Kubernetes API server.

Inheritance
object
Exception
KubernetesException
Implements
ISerializable
Inherited Members
Exception.GetBaseException()
Exception.ToString()
Exception.GetType()
Exception.TargetSite
Exception.Message
Exception.Data
Exception.InnerException
Exception.HelpLink
Exception.Source
Exception.HResult
Exception.StackTrace
Exception.SerializeObjectState
object.MemberwiseClone()
object.Equals(object)
object.Equals(object, object)
object.ReferenceEquals(object, object)
object.GetHashCode()
Namespace: k8s
Assembly: KubernetesClient.dll
Syntax
public class KubernetesException : Exception, ISerializable

Constructors

View Source

KubernetesException()

Initializes a new instance of the KubernetesException class.

Declaration
public KubernetesException()
View Source

KubernetesException(string)

Initializes a new instance of the KubernetesException class with an error message.

Declaration
public KubernetesException(string message)
Parameters
Type Name Description
string message

The error message that explains the reason for the exception.

View Source

KubernetesException(string, Exception)

Initializes a new instance of the KubernetesException class with a specified error message and a reference to the inner exception that is the cause of this exception.

Declaration
public KubernetesException(string message, Exception innerException)
Parameters
Type Name Description
string message

The error message that explains the reason for the exception.

Exception innerException

The exception that is the cause of the current exception, or null if no inner exception is specified.

View Source

KubernetesException(V1Status)

Initializes a new instance of the KubernetesException class using the data from a V1Status object.

Declaration
public KubernetesException(V1Status status)
Parameters
Type Name Description
V1Status status

A status message which triggered this exception to be thrown.

View Source

KubernetesException(V1Status, Exception)

Initializes a new instance of the KubernetesException class using the data from a V1Status object and a reference to the inner exception that is the cause of this exception..

Declaration
public KubernetesException(V1Status status, Exception innerException)
Parameters
Type Name Description
V1Status status

A status message which triggered this exception to be thrown.

Exception innerException

The exception that is the cause of the current exception, or null if no inner exception is specified.

Properties

View Source

Status

Gets, when this exception was raised because of a Kubernetes status message, the underlying Kubernetes status message.

Declaration
public V1Status Status { get; }
Property Value
Type Description
V1Status

Implements

ISerializable
  • View Source
In this article
Back to top Generated by DocFX