# SharedDeviceData.InvalidSharedDeviceDataException

public static final class **SharedDeviceData.InvalidSharedDeviceDataException** extends [Exception](https://developer.android.com/reference/java/lang/Exception.html)  
Exception thrown when parsing an `https://developer.android.com/reference/android/content/Intent.html` to
retrieved a `https://developers.home.google.com/android/reference/com/google/android/gms/home/matter/commissioning/SharedDeviceData`,
if the given `https://developer.android.com/reference/android/content/Intent.html` is missing
required data or is malformed.

### Public Constructor Summary

|---|---|
|   | [InvalidSharedDeviceDataException](https://developers.home.google.com/android/reference/com/google/android/gms/home/matter/commissioning/SharedDeviceData.InvalidSharedDeviceDataException#InvalidSharedDeviceDataException(java.lang.String))([String](https://developer.android.com/reference/java/lang/String.html) message) Constructs a new instance with the specified exception message. |
|   | [InvalidSharedDeviceDataException](https://developers.home.google.com/android/reference/com/google/android/gms/home/matter/commissioning/SharedDeviceData.InvalidSharedDeviceDataException#InvalidSharedDeviceDataException(java.lang.String,%20java.lang.Throwable))([String](https://developer.android.com/reference/java/lang/String.html) message, [Throwable](https://developer.android.com/reference/java/lang/Throwable.html) cause) Constructs a new instance with the specified exception message and causej. |

### Inherited Method Summary

From class java.lang.Throwable

|---|---|
| synchronized final void | addSuppressed([Throwable](https://developer.android.com/reference/java/lang/Throwable.html) arg0) |
| synchronized [Throwable](https://developer.android.com/reference/java/lang/Throwable.html) | fillInStackTrace() |
| synchronized [Throwable](https://developer.android.com/reference/java/lang/Throwable.html) | getCause() |
| [String](https://developer.android.com/reference/java/lang/String.html) | getLocalizedMessage() |
| [String](https://developer.android.com/reference/java/lang/String.html) | getMessage() |
| [StackTraceElement\[\]](https://developer.android.com/reference/java/lang/StackTraceElement.html) | getStackTrace() |
| synchronized final [Throwable\[\]](https://developer.android.com/reference/java/lang/Throwable.html) | getSuppressed() |
| synchronized [Throwable](https://developer.android.com/reference/java/lang/Throwable.html) | initCause([Throwable](https://developer.android.com/reference/java/lang/Throwable.html) arg0) |
| void | printStackTrace() |
| void | printStackTrace([PrintWriter](https://developer.android.com/reference/java/io/PrintWriter.html) arg0) |
| void | printStackTrace([PrintStream](https://developer.android.com/reference/java/io/PrintStream.html) arg0) |
| void | setStackTrace([StackTraceElement\[\]](https://developer.android.com/reference/java/lang/StackTraceElement.html) arg0) |
| [String](https://developer.android.com/reference/java/lang/String.html) | toString() |

From class java.lang.Object

|---|---|
| [Object](https://developer.android.com/reference/java/lang/Object.html) | clone() |
| boolean | equals([Object](https://developer.android.com/reference/java/lang/Object.html) arg0) |
| void | finalize() |
| final [Class](https://developer.android.com/reference/java/lang/Class.html)\<?\> | getClass() |
| int | hashCode() |
| final void | notify() |
| final void | notifyAll() |
| [String](https://developer.android.com/reference/java/lang/String.html) | toString() |
| final void | wait(long arg0, int arg1) |
| final void | wait(long arg0) |
| final void | wait() |

## Public Constructors

#### public **InvalidSharedDeviceDataException** ([String](https://developer.android.com/reference/java/lang/String.html) message)

Constructs a new instance with the specified exception message.

#### public **InvalidSharedDeviceDataException** ([String](https://developer.android.com/reference/java/lang/String.html) message, [Throwable](https://developer.android.com/reference/java/lang/Throwable.html) cause)

Constructs a new instance with the specified exception message and causej.