I have this function:
public static FradId readFradId(DataInput pIn) throws IOException { Integer lMainId = Integer.valueOf(pIn.readInt()); Integer lReferenceId = Integer.valueOf(pIn.readInt()); String lShortname = pIn.readUTF(); return new FradId(lMainId,lReferenceId,lShortname); }
I got a breakpoint on this line:
String lShortname = pIn.readUTF();
My problem is that in some cases the readUTF function throws a RuntimeException . The application performs the function more than 100 times, so it is very difficult for me to find the problem.
my question is: is there a way to catch this exception with a breakpoint condition? I already use these conditions with light Boolean conditions, but I donβt know how to stop at this line when throwing an exception.
thanks in advance
Stephen
source share