check specific error type