StatusCause

case
class StatusCause(field: Optional[String], message: Optional[String], reason: Optional[String])

StatusCause provides more information about an api.Status failure, including cases when multiple errors are encountered.

Value Params
field

The field of the resource that has caused this error, as named by its JSON serialization. May include dot and postfix notation for nested attributes. Arrays are zero-indexed. Fields may appear more than once in an array of causes due to fields having multiple errors. Optional. Examples: "name" - the field "name" on the current resource "items[0].name" - the field "name" on the first array entry in "items"

message

A human-readable description of the cause of the error. This field may be presented as-is to a reader.

reason

A machine-readable description of the cause of the error. If this value is empty there is no information available.

Companion
object
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any

Value members

Concrete methods

def getField: IO[K8sFailure, String]

The field of the resource that has caused this error, as named by its JSON serialization. May include dot and postfix notation for nested attributes. Arrays are zero-indexed. Fields may appear more than once in an array of causes due to fields having multiple errors. Optional.

The field of the resource that has caused this error, as named by its JSON serialization. May include dot and postfix notation for nested attributes. Arrays are zero-indexed. Fields may appear more than once in an array of causes due to fields having multiple errors. Optional.

Examples: "name" - the field "name" on the current resource "items[0].name" - the field "name" on the first array entry in "items"

If the field is not present, fails with com.coralogix.zio.k8s.client.UndefinedField.

def getMessage: IO[K8sFailure, String]

A human-readable description of the cause of the error. This field may be presented as-is to a reader.

A human-readable description of the cause of the error. This field may be presented as-is to a reader.

If the field is not present, fails with com.coralogix.zio.k8s.client.UndefinedField.

def getReason: IO[K8sFailure, String]

A machine-readable description of the cause of the error. If this value is empty there is no information available.

A machine-readable description of the cause of the error. If this value is empty there is no information available.

If the field is not present, fails with com.coralogix.zio.k8s.client.UndefinedField.

Inherited methods

def productElementNames: Iterator[String]
Inherited from
Product
def productIterator: Iterator[Any]
Inherited from
Product