We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
StackTrace
Task
Hey @spebbe 👋
I'd like to suggest adding the StackTrace to the left of a task invocation. So instead of:
@override Task<Either<Object, A>> attempt() => new Task(() => run().then(right).catchError((err) => left<Object, A>(err)));
you'd have:
@override Task<Either<TaskError, A>> attempt() => new Task(() => run().then(right).catchError((e, s) => left<TaskError, A>(TaskError(e, s))));
Where TaskError class would hold the error and the stackTrace. This would allow for logging/inspecting of the stack if needed.
TaskError
error
stackTrace
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Hey @spebbe 👋
I'd like to suggest adding the
StackTrace
to the left of a task invocation.So instead of:
you'd have:
Where
TaskError
class would hold theerror
and thestackTrace
.This would allow for logging/inspecting of the stack if needed.
The text was updated successfully, but these errors were encountered: