# MatterError

# MatterError


```
class MatterError : BaseHomeError
```

<br />

|---|---|---|
| [kotlin.Any](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-any/index.html) |||
| ↳ | [com.google.home.BaseHomeError](https://developers.home.google.com/reference/kotlin/com/google/home/BaseHomeError) ||
|   | ↳ | [com.google.home.MatterError](https://developers.home.google.com/reference/kotlin/com/google/home/MatterError) |

*** ** * ** ***

## Summary

| ### Public constructors |
|---|
| `https://developers.home.google.com/reference/kotlin/com/google/home/MatterError#MatterError(kotlin.String,com.google.home.HomeErrorDomain,kotlin.String)(message: https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html, domain: https://developers.home.google.com/reference/kotlin/com/google/home/HomeErrorDomain?, reason: https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html?)` |
| `https://developers.home.google.com/reference/kotlin/com/google/home/MatterError#MatterError(kotlin.Int,kotlin.String,com.google.home.HomeErrorDomain,kotlin.String)( code: https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html, message: https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html, domain: https://developers.home.google.com/reference/kotlin/com/google/home/HomeErrorDomain?, reason: https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html? )` |

| ### Public functions |
|---|---|
| `open operator https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-boolean/index.html` | `https://developers.home.google.com/reference/kotlin/com/google/home/MatterError#equals(kotlin.Any)(other: https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-any/index.html?)` |

| ### Public properties |
|---|---|
| `open https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html` | `https://developers.home.google.com/reference/kotlin/com/google/home/MatterError#code()` the error code in HomeException.Codes |
| `open https://developers.home.google.com/reference/kotlin/com/google/home/HomeErrorDomain?` | `https://developers.home.google.com/reference/kotlin/com/google/home/MatterError#domain()` the error domain |
| `open https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html` | `https://developers.home.google.com/reference/kotlin/com/google/home/MatterError#message()` the error message |
| `open https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html?` | `https://developers.home.google.com/reference/kotlin/com/google/home/MatterError#reason()` the reason for the error which represents UPPER_SNAKE_CASE string. |

## Public constructors

### MatterError

```
MatterError(
    message: String,
    domain: HomeErrorDomain? = null,
    reason: String? = null
)
```

### MatterError

```
MatterError(
    code: Int,
    message: String,
    domain: HomeErrorDomain? = null,
    reason: String? = null
)
```

## Public functions

### equals

```
open operator fun equals(other: Any?): Boolean
```

## Public properties

### code

```
open val code: Int
```

the error code in HomeException.Codes

### domain

```
open val domain: HomeErrorDomain?
```

the error domain

### message

```
open val message: String
```

the error message

### reason

```
open val reason: String?
```

the reason for the error which represents UPPER_SNAKE_CASE string.