Type for a detector function that checks if an error matches certain criteria.
The error to check.
True if the error matches the criteria, false otherwise.
Type for a detector function that checks if an error matches certain criteria.