# get errors()

## `CommonErrors.prototype.errors()`

The [`get`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Functions/get) accessor returns the errors of [`Map`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Map) type by returning the [`#errors`](https://docs.angular-package.dev/error/commonerrors/properties/errors) property of a specified object.

{% code title="common-errors.class.ts" %}

```typescript
protected get errors(): Map<Id, any> {
  return this.#errors;
}
```

{% endcode %}

### Return type

#### `Map<`[<mark style="color:green;">`Id`</mark>](https://docs.angular-package.dev/error/generic-type-variables#commonerrors-less-than-id-greater-than)`,`[<mark style="color:green;">`any`</mark>](https://www.typescriptlang.org/docs/handbook/basic-types.html#any)`>`

### Returns

The **return value** is the [`Map`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Map) object of errors.
