Migrate ExecutorException to kotlin (#47539)

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

Migrate ExecutorException to kotlin

changelog: [internal] internal

Reviewed By: javache

Differential Revision: D65738325

fbshipit-source-id: 0ae6adedf0f80d57426ebc749fd77c31942b3b47
This commit is contained in:
David Vacca 2024-11-11 07:03:00 -08:00 committed by Facebook GitHub Bot
parent 443bc32dc4
commit 17b69795c3

View File

@ -5,17 +5,11 @@
* 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
/**
* This is a wrapper class for emphasizing that task failed due to bad {@code Executor}, rather than
* the continuation block it self.
*/
class ExecutorException extends RuntimeException {
public ExecutorException(@Nullable Exception e) {
super("An exception was thrown by an Executor", e);
}
}
internal class ExecutorException(e: Exception?) :
RuntimeException("An exception was thrown by an Executor", e) {}