If I create an explicit CURSOR with a

CURSOR c1 IS
SELECT x,y,z
FROM a
WHERE x = nnn
FOR UPDATE;

OPEN c1 etc ...

Can I handle the fact that the target record might be locked, in such a way to warn the user (rather than have them sit and wait for the other session to commit or rollback)?