Migrate UnobservedTaskException to kotlin (#47542)

Summary:
Pull Request resolved: https://github.com/facebook/react-native/pull/47542

Migrate UnobservedTaskException to kotlin

changelog: [internal] internal

Reviewed By: javache

Differential Revision: D65738327

fbshipit-source-id: 251f8ee55497328212ce3facab7a4686fa1a29c8
This commit is contained in:
David Vacca 2024-11-11 07:03:00 -08:00 committed by Facebook GitHub Bot
parent 4f55161132
commit 94839ed174

View File

@ -5,13 +5,7 @@
* LICENSE file in the root directory of this source tree.
*/
package com.facebook.react.runtime.internal.bolts;
import androidx.annotation.Nullable;
package com.facebook.react.runtime.internal.bolts
/** Used to signify that a Task's error went unobserved. */
class UnobservedTaskException extends RuntimeException {
public UnobservedTaskException(@Nullable Throwable cause) {
super(cause);
}
}
internal class UnobservedTaskException(cause: Throwable?) : RuntimeException(cause) {}