Android 12 Developer Preview is here! Try it out, and give us your feedback!

HostException

public final class HostException
extends RuntimeException

java.lang.Object
   ↳ java.lang.Throwable
     ↳ java.lang.Exception
       ↳ java.lang.RuntimeException
         ↳ androidx.car.app.HostException


Exceptions that happen on calls to the host.

Summary

Public constructors

HostException(String message)

Creates an instance of HostException with the given message.

HostException(String message, Throwable cause)

Creates an instance of HostException with the given message.

HostException(Throwable cause)

Creates an instance of HostException with the given cause.

Inherited methods

Public constructors

HostException

public HostException (String message)

Creates an instance of HostException with the given message.

Parameters
message String: the exception message

HostException

public HostException (String message, 
                Throwable cause)

Creates an instance of HostException with the given message.

Parameters
message String: the exception message

cause Throwable: the originating cause of the exception

HostException

public HostException (Throwable cause)

Creates an instance of HostException with the given cause.

Parameters
cause Throwable: the originating cause of the exception