451: IF (P_handle_exception_flag = 'Y') THEN
452: X_status := 'PA_NO_EXCH_RATE_EXISTS';
453: ELSE
454: IF P_DEBUG_MODE THEN
455: pa_cc_utils.log_message('convert_closest_amount: ' || pa_debug.G_err_stack);
456: pa_cc_utils.log_message('convert_closest_amount: ' || SQLERRM);
457: END IF;
458: RAISE;
459: END IF;
461: IF (P_handle_exception_flag = 'Y') THEN
462: X_status := 'PA_CURR_NOT_VALID';
463: ELSE
464: IF P_DEBUG_MODE THEN
465: pa_cc_utils.log_message('convert_closest_amount: ' || pa_debug.G_err_stack);
466: pa_cc_utils.log_message('convert_closest_amount: ' || SQLERRM);
467: END IF;
468: RAISE;
469: END IF;
468: RAISE;
469: END IF;
470: WHEN others THEN
471: IF P_DEBUG_MODE THEN
472: pa_cc_utils.log_message('convert_closest_amount: ' || pa_debug.G_err_stack);
473: pa_cc_utils.log_message('convert_closest_amount: ' || SQLERRM);
474: END IF;
475: RAISE;
476:
549: -- This applies the format mask to the amount to get the formatted amount.
550: EXCEPTION
551: WHEN OTHERS THEN
552: IF P_DEBUG_MODE THEN
553: pa_cc_utils.log_message('format_amount: ' || pa_debug.G_err_stack);
554: pa_cc_utils.log_message('format_amount: ' || SQLERRM);
555: END IF;
556: RAISE ;
557: END format_amount ;
603:
604: EXCEPTION
605: WHEN others THEN
606: IF P_DEBUG_MODE THEN
607: pa_cc_utils.log_message('validate_rate_type: ' || pa_debug.G_err_stack);
608: pa_cc_utils.log_message('validate_rate_type: ' || SQLERRM);
609: END IF;
610: RAISE ;
611: END validate_rate_type ;
690:
691: EXCEPTION
692: WHEN others THEN
693: IF P_DEBUG_MODE THEN
694: pa_cc_utils.log_message('validate_currency_code: ' || pa_debug.G_err_stack);
695: pa_cc_utils.log_message('validate_currency_code: ' || SQLERRM);
696: END IF;
697: --Bug 2749049
698: pa_cc_utils.reset_curr_function ;
753:
754: EXCEPTION
755: WHEN others THEN
756: IF P_DEBUG_MODE THEN
757: pa_cc_utils.log_message('get_conversion_type: ' || pa_debug.G_err_stack);
758: pa_cc_utils.log_message('get_conversion_type: ' || SQLERRM);
759: END IF;
760: pa_cc_utils.reset_curr_function ;
761: RETURN NULL;