# CarNotConnectedException

Summary:[Ctors](https://developer.android.com/reference/android/car/CarNotConnectedException#pubctors)\|[Inherited Methods](https://developer.android.com/reference/android/car/CarNotConnectedException#inhmethods)  

# CarNotConnectedException

`
public


class
CarNotConnectedException
`  
`


``


``


``

extends RuntimeException


``


`

|---|---|---|---|--------------------------------------|
| java.lang.Object                                 |||||
| ↳ | java.lang.Throwable                           ||||
|   | ↳ | java.lang.Exception                        |||
|   |   | ↳ | java.lang.RuntimeException              ||
|   |   |   | ↳ | android.car.CarNotConnectedException |

<br />

*** ** * ** ***

<br />

**This class is deprecated.**   
No longer thrown by the Android API. Do not use in new code.

Exception thrown when car is not connected for the API which requires car connection.

## Summary

|                                                                                                                           ### Public constructors                                                                                                                           ||
|--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|---|
| ` `[CarNotConnectedException](https://developer.android.com/reference/android/car/CarNotConnectedException#CarNotConnectedException())`() ` *This constructor is deprecated. Do not use in new code.*                                                                    |
| ` `[CarNotConnectedException](https://developer.android.com/reference/android/car/CarNotConnectedException#CarNotConnectedException(java.lang.Exception))`(Exception cause) ` *This constructor is deprecated. Do not use in new code.*                                  |
| ` `[CarNotConnectedException](https://developer.android.com/reference/android/car/CarNotConnectedException#CarNotConnectedException(java.lang.String))`(String name) ` *This constructor is deprecated. Do not use in new code.*                                         |
| ` `[CarNotConnectedException](https://developer.android.com/reference/android/car/CarNotConnectedException#CarNotConnectedException(java.lang.String,%20java.lang.Throwable))`(String name, Throwable cause) ` *This constructor is deprecated. Do not use in new code.* |

| ### Inherited methods |
|-----------------------|---|
| From class` java.lang.Throwable ` |------------------------|---------------------------------------------| | ` final void`          | ` addSuppressed(Throwable arg0) `           | | ` Throwable`           | ` fillInStackTrace() `                      | | ` Throwable`           | ` getCause() `                              | | ` String`              | ` getLocalizedMessage() `                   | | ` String`              | ` getMessage() `                            | | ` StackTraceElement[]` | ` getStackTrace() `                         | | ` final Throwable[]`   | ` getSuppressed() `                         | | ` Throwable`           | ` initCause(Throwable arg0) `               | | ` void`                | ` printStackTrace() `                       | | ` void`                | ` printStackTrace(PrintWriter arg0) `       | | ` void`                | ` printStackTrace(PrintStream arg0) `       | | ` void`                | ` setStackTrace(StackTraceElement[] arg0) ` | ||
| From class` java.lang.Object ` |-------------------|-------------------------------| | ` Object`         | ` clone() `                   | | ` boolean`        | ` equals(Object arg0) `       | | ` void`           | ` finalize() `                | | ` final Class<?>` | ` getClass() `                | | ` int`            | ` hashCode() `                | | ` final void`     | ` notify() `                  | | ` final void`     | ` notifyAll() `               | | ` String`         | ` toString() `                | | ` final void`     | ` wait(long arg0, int arg1) ` | | ` final void`     | ` wait(long arg0) `           | | ` final void`     | ` wait() `                    | ||

## Public constructors

### CarNotConnectedException

```
public CarNotConnectedException ()
```

<br />

**This constructor is deprecated.**   
Do not use in new code.

<br />

<br />

### CarNotConnectedException

```
public CarNotConnectedException (Exception cause)
```

<br />

**This constructor is deprecated.**   
Do not use in new code.

<br />

<br />

|         Parameters          ||
|---------|--------------------|
| `cause` | `Exception` <br /> |

### CarNotConnectedException

```
public CarNotConnectedException (String name)
```

<br />

**This constructor is deprecated.**   
Do not use in new code.

<br />

<br />

|       Parameters        ||
|--------|-----------------|
| `name` | `String` <br /> |

### CarNotConnectedException

```
public CarNotConnectedException (String name, 
                Throwable cause)
```

<br />

**This constructor is deprecated.**   
Do not use in new code.

<br />

<br />

|         Parameters          ||
|---------|--------------------|
| `name`  | `String` <br />    |
| `cause` | `Throwable` <br /> |