14:
15: /***
16: This function returns a translated error message string. If p_api_error
17: is FALSE, it gets message with MESSAGE_NAME = p_message from
18: FND_NEW_MESSAGES and replaces any tokens with the supplied token values.
19: If p_api_error is TRUE, it just returns the api error in the
20: FND_MSG_PUB message stack.
21: ***/
22:
22:
23: FUNCTION GET_ERROR_MESSAGE_TEXT
24: (
25: p_api_error IN BOOLEAN DEFAULT FALSE
26: , p_message IN FND_NEW_MESSAGES.MESSAGE_NAME%TYPE DEFAULT NULL
27: , p_token_name1 IN VARCHAR2 DEFAULT NULL
28: , p_token_value1 IN VARCHAR2 DEFAULT NULL
29: , p_token_name2 IN VARCHAR2 DEFAULT NULL
30: , p_token_value2 IN VARCHAR2 DEFAULT NULL