# Class StatusMessage (1.7.0)

<button class="button button-with-icon cloud-select-dropdown__button " aria-haspopup="true">Version latest</button>

- [1.7.0 (latest)](https://docs.cloud.google.com/python/docs/reference/clouddebugger/latest/google.cloud.debugger_v2.types.StatusMessage)
- [1.6.1](https://docs.cloud.google.com/python/docs/reference/clouddebugger/1.6.1/google.cloud.debugger_v2.types.StatusMessage)
- [1.5.0](https://docs.cloud.google.com/python/docs/reference/clouddebugger/1.5.0/google.cloud.debugger_v2.types.StatusMessage)
- [1.4.3](https://docs.cloud.google.com/python/docs/reference/clouddebugger/1.4.3/google.cloud.debugger_v2.types.StatusMessage)
- [1.3.2](https://docs.cloud.google.com/python/docs/reference/clouddebugger/1.3.2/google.cloud.debugger_v2.types.StatusMessage)
- [1.2.1](https://docs.cloud.google.com/python/docs/reference/clouddebugger/1.2.1/google.cloud.debugger_v2.types.StatusMessage)
- [1.1.0](https://docs.cloud.google.com/python/docs/reference/clouddebugger/1.1.0/google.cloud.debugger_v2.types.StatusMessage)
- [1.0.2](https://docs.cloud.google.com/python/docs/reference/clouddebugger/1.0.2/google.cloud.debugger_v2.types.StatusMessage)
- [0.1.5](https://docs.cloud.google.com/python/docs/reference/clouddebugger/0.1.5/google.cloud.debugger_v2.types.StatusMessage)

    StatusMessage(mapping=None, *, ignore_unknown_fields=False, **kwargs)

Represents a contextual status message. The message can indicate an
error or informational status, and refer to specific parts of the
containing object. For example, the `Breakpoint.status` field can
indicate an error referring to the `BREAKPOINT_SOURCE_LOCATION`
with the message `Location not found`.

| ## Attributes ||
|---|---|
| **Name** | **Description** |
| `is_error` | `bool` Distinguishes errors from informational messages. |
| `refers_to` | `https://docs.cloud.google.com/python/docs/reference/clouddebugger/latest/google.cloud.debugger_v2.types.StatusMessage.Reference` Reference to which the message applies. |
| `description` | `https://docs.cloud.google.com/python/docs/reference/clouddebugger/latest/google.cloud.debugger_v2.types.FormatMessage` Status message text. |

## Classes

### Reference

    Reference(value)

Enumerates references to which the message applies.

Values:
UNSPECIFIED (0):
Status doesn't refer to any particular input.
BREAKPOINT_SOURCE_LOCATION (3):
Status applies to the breakpoint and is
related to its location.
BREAKPOINT_CONDITION (4):
Status applies to the breakpoint and is
related to its condition.
BREAKPOINT_EXPRESSION (7):
Status applies to the breakpoint and is
related to its expressions.
BREAKPOINT_AGE (8):
Status applies to the breakpoint and is
related to its age.
VARIABLE_NAME (5):
Status applies to the entire variable.
VARIABLE_VALUE (6):
Status applies to variable value (variable
name is valid).