535: IF (X_Debug_Mode) THEN
536: Debug_Print_Msg(fnd_message.get);
537: Debug_Print_Msg(substrb(SQLERRM, 1, 2000));
538: END IF;
539: app_exception.raise_exception;
540:
541: WHEN REQUEST_FAILED THEN
542: fnd_message.set_name('SQLGL', 'SHRD0148');
543:
544: IF (X_Debug_Mode) THEN
545: Debug_Print_Msg(fnd_message.get);
546: Debug_Print_Msg(substrb(SQLERRM, 1, 2000));
547: END IF;
548: app_exception.raise_exception;
549:
550: WHEN OTHERS THEN
551: fnd_message.set_name('SQLGL', 'GL_UNHANDLED_EXCEPTION');
552: fnd_message.set_token('PROCEDURE', 'gl_autopost_pkg.post_batches');
554: IF (X_Debug_Mode) THEN
555: Debug_Print_Msg(fnd_message.get);
556: Debug_Print_Msg(substrb(SQLERRM, 1, 2000));
557: END IF;
558: app_exception.raise_exception;
559:
560: END Post_Batches;
561:
562: END gl_autopost_pkg;