# HomeError

# HomeError


```
class HomeError : 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.HomeError](https://developers.home.google.com/reference/kotlin/com/google/home/HomeError) |

*** ** * ** ***

Representation of an error that happened during an API call. The code allows the developers to reference the documentation for more information.

## Summary

| ### Public constructors |
|---|
| `https://developers.home.google.com/reference/kotlin/com/google/home/HomeError#HomeError(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/HomeError#HomeError(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/HomeError#equals(kotlin.Any)(other: https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-any/index.html?)` |
| `open https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html` | `https://developers.home.google.com/reference/kotlin/com/google/home/HomeError#hashCode()()` |

| ### Public properties |
|---|---|
| `open https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html` | `https://developers.home.google.com/reference/kotlin/com/google/home/HomeError#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/HomeError#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/HomeError#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/HomeError#reason()` the reason for the error which represents UPPER_SNAKE_CASE string. |

## Public constructors

### HomeError

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

### HomeError

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

| Parameters |
|---|---|
| `code: https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html` | the error code in HomeException.Codes |
| `message: https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html` | the error message |
| `domain: https://developers.home.google.com/reference/kotlin/com/google/home/HomeErrorDomain? = null` | the error domain |
| `reason: https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html? = null` | the reason for the error which represents UPPER_SNAKE_CASE string. |

## Public functions

### equals

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

### hashCode

```
open fun hashCode(): Int
```

## 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.