exception in finally block

I am getting exception in finally block so how to catch this

the code is

public synchronized Object getValueAt(int row, int col)

{

try{

return attData[row][col];

}

catch(Exception e)

{

EMCLog.logError("EMCTableModel_getValueAt",e+e.getMessage());

}

finally{

return attData[row][col];

}

}

Can anyone give me solution to how to catch exception in finally block?

Thanks in advance

[485 byte] By [yesitsgaurava] at [2007-10-1 21:08:30]
# 1

You place a nested try-catch block witihin the finally clause of the original try-catch's finally block. However, don't bother. You should *not* return data from a finally clause. It's purpose is to reclaim resources (e.g., database connection, network socket, etc.) regardless ot the success or failure of an operation. Returning data from a finally clause is a sign of bad design.

- Saish

Saisha at 2007-7-13 3:05:56 > top of Java-index,Developer Tools,Debugging and Profiling Tool APIs...