What ever ther error message above 20000 are said to be raised by the application and they are application specific. In the procedure/package/function code look for the Rais_application_error and then see when that error is set to be raised and fix that cause and that would solve the problem. The error 6512 was because the exception results in the unhandled state.

Good luck
Sam