A function that checks if an error should be reported as unexpected.
Error to be checked.
A boolean indicating if the error should be reported as unexpected.
A function that checks if an error should be reported as unexpected.