Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
refactor: use OpError instead of ErrBox for errors in ops (denoland#4058
) To better reflect changes in error types in JS from denoland#3662 this PR changes default error type used in ops from "ErrBox" to "OpError". "OpError" is a type that can be sent over to JSON; it has all information needed to construct error in JavaScript. That made "GetErrorKind" trait useless and so it was removed altogether. To provide compatibility with previous use of "ErrBox" an implementation of "From<ErrBox> for OpError" was added, however, it is an escape hatch and ops implementors should strive to use "OpError" directly.
- Loading branch information