WorkRequestError

class oci.load_balancer.models.WorkRequestError(**kwargs)

Bases: object

An object returned in the event of a work request error.

Attributes:

ERROR_CODE_BAD_INPUT

A constant which can be used with the error_code property of a WorkRequestError.

ERROR_CODE_INTERNAL_ERROR

A constant which can be used with the error_code property of a WorkRequestError.

error_code

[Required] Gets the error_code of this WorkRequestError.

message

[Required] Gets the message of this WorkRequestError.

Methods:

__init__(**kwargs)

Initializes a new WorkRequestError object with values from keyword arguments.

ERROR_CODE_BAD_INPUT = 'BAD_INPUT'

A constant which can be used with the error_code property of a WorkRequestError. This constant has a value of “BAD_INPUT”

ERROR_CODE_INTERNAL_ERROR = 'INTERNAL_ERROR'

A constant which can be used with the error_code property of a WorkRequestError. This constant has a value of “INTERNAL_ERROR”

__init__(**kwargs)

Initializes a new WorkRequestError object with values from keyword arguments. The following keyword arguments are supported (corresponding to the getters/setters of this class):

Parameters
  • error_code (str) – The value to assign to the error_code property of this WorkRequestError. Allowed values for this property are: “BAD_INPUT”, “INTERNAL_ERROR”, ‘UNKNOWN_ENUM_VALUE’. Any unrecognized values returned by a service will be mapped to ‘UNKNOWN_ENUM_VALUE’.

  • message (str) – The value to assign to the message property of this WorkRequestError.

property error_code

[Required] Gets the error_code of this WorkRequestError. Allowed values for this property are: “BAD_INPUT”, “INTERNAL_ERROR”, ‘UNKNOWN_ENUM_VALUE’. Any unrecognized values returned by a service will be mapped to ‘UNKNOWN_ENUM_VALUE’.

Returns

The error_code of this WorkRequestError.

Return type

str

property message

[Required] Gets the message of this WorkRequestError. A human-readable error string.

Returns

The message of this WorkRequestError.

Return type

str