pass error type