209: EXCEPTION
210:
211: WHEN FND_API.G_EXC_ERROR THEN
212: x_return_status := FND_API.G_RET_STS_ERROR;
213: FND_MESSAGE.SET_NAME('WSH','WSH_OI_STOP_ACTION_ERROR');
214: FND_MESSAGE.SET_TOKEN('STOP_NAME', wsh_trip_stops_pvt.get_name(l_stop_id));
215: FND_MESSAGE.SET_TOKEN('ACTION', wsh_util_core.get_action_meaning('STOP',p_action_code));
216: wsh_util_core.add_message(x_return_status,l_module_name);
217:
210:
211: WHEN FND_API.G_EXC_ERROR THEN
212: x_return_status := FND_API.G_RET_STS_ERROR;
213: FND_MESSAGE.SET_NAME('WSH','WSH_OI_STOP_ACTION_ERROR');
214: FND_MESSAGE.SET_TOKEN('STOP_NAME', wsh_trip_stops_pvt.get_name(l_stop_id));
215: FND_MESSAGE.SET_TOKEN('ACTION', wsh_util_core.get_action_meaning('STOP',p_action_code));
216: wsh_util_core.add_message(x_return_status,l_module_name);
217:
218: IF l_debug_on THEN
211: WHEN FND_API.G_EXC_ERROR THEN
212: x_return_status := FND_API.G_RET_STS_ERROR;
213: FND_MESSAGE.SET_NAME('WSH','WSH_OI_STOP_ACTION_ERROR');
214: FND_MESSAGE.SET_TOKEN('STOP_NAME', wsh_trip_stops_pvt.get_name(l_stop_id));
215: FND_MESSAGE.SET_TOKEN('ACTION', wsh_util_core.get_action_meaning('STOP',p_action_code));
216: wsh_util_core.add_message(x_return_status,l_module_name);
217:
218: IF l_debug_on THEN
219: wsh_debug_sv.log (l_module_name,'EXCEPTION:G_EXC_ERROR');
222:
223:
224: WHEN FND_API.G_EXC_UNEXPECTED_ERROR THEN
225: x_return_status := FND_API.G_RET_STS_UNEXP_ERROR ;
226: FND_MESSAGE.SET_NAME('WSH','WSH_OI_STOP_ACTION_ERROR');
227: FND_MESSAGE.SET_TOKEN('STOP_NAME', wsh_trip_stops_pvt.get_name(l_stop_id));
228: FND_MESSAGE.SET_TOKEN('ACTION', wsh_util_core.get_action_meaning('STOP',p_action_code));
229: wsh_util_core.add_message(x_return_status,l_module_name);
230: -- Get message count and data
223:
224: WHEN FND_API.G_EXC_UNEXPECTED_ERROR THEN
225: x_return_status := FND_API.G_RET_STS_UNEXP_ERROR ;
226: FND_MESSAGE.SET_NAME('WSH','WSH_OI_STOP_ACTION_ERROR');
227: FND_MESSAGE.SET_TOKEN('STOP_NAME', wsh_trip_stops_pvt.get_name(l_stop_id));
228: FND_MESSAGE.SET_TOKEN('ACTION', wsh_util_core.get_action_meaning('STOP',p_action_code));
229: wsh_util_core.add_message(x_return_status,l_module_name);
230: -- Get message count and data
231: FND_MSG_PUB.Count_And_Get
224: WHEN FND_API.G_EXC_UNEXPECTED_ERROR THEN
225: x_return_status := FND_API.G_RET_STS_UNEXP_ERROR ;
226: FND_MESSAGE.SET_NAME('WSH','WSH_OI_STOP_ACTION_ERROR');
227: FND_MESSAGE.SET_TOKEN('STOP_NAME', wsh_trip_stops_pvt.get_name(l_stop_id));
228: FND_MESSAGE.SET_TOKEN('ACTION', wsh_util_core.get_action_meaning('STOP',p_action_code));
229: wsh_util_core.add_message(x_return_status,l_module_name);
230: -- Get message count and data
231: FND_MSG_PUB.Count_And_Get
232: ( p_count => x_msg_count