Change the implementation to support uncomparable error types.