mirror of
https://github.com/facebook/react-native.git
synced 2024-11-21 22:10:14 +00:00
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:
parent
443bc32dc4
commit
17b69795c3
@ -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) {}
|
Loading…
Reference in New Issue
Block a user