Does the error contain a specific code?
Exception to check.
Code such as 'ENOENT' or -2.
True if code matches.
On invalid code type.
Does the error contain a specific code?