156: ben_epr_shd.g_api_dml := false; -- Unset the api dml status
157: --
158: hr_utility.set_location(' Leaving:'||l_proc, 10);
159: Exception
160: When hr_api.check_integrity_violated Then
161: -- A check constraint has been violated
162: ben_epr_shd.g_api_dml := false; -- Unset the api dml status
163: ben_epr_shd.constraint_error
164: (p_constraint_name => hr_api.strip_constraint_name(SQLERRM));
160: When hr_api.check_integrity_violated Then
161: -- A check constraint has been violated
162: ben_epr_shd.g_api_dml := false; -- Unset the api dml status
163: ben_epr_shd.constraint_error
164: (p_constraint_name => hr_api.strip_constraint_name(SQLERRM));
165: When hr_api.parent_integrity_violated Then
166: -- Parent integrity has been violated
167: ben_epr_shd.g_api_dml := false; -- Unset the api dml status
168: ben_epr_shd.constraint_error
161: -- A check constraint has been violated
162: ben_epr_shd.g_api_dml := false; -- Unset the api dml status
163: ben_epr_shd.constraint_error
164: (p_constraint_name => hr_api.strip_constraint_name(SQLERRM));
165: When hr_api.parent_integrity_violated Then
166: -- Parent integrity has been violated
167: ben_epr_shd.g_api_dml := false; -- Unset the api dml status
168: ben_epr_shd.constraint_error
169: (p_constraint_name => hr_api.strip_constraint_name(SQLERRM));
165: When hr_api.parent_integrity_violated Then
166: -- Parent integrity has been violated
167: ben_epr_shd.g_api_dml := false; -- Unset the api dml status
168: ben_epr_shd.constraint_error
169: (p_constraint_name => hr_api.strip_constraint_name(SQLERRM));
170: When hr_api.unique_integrity_violated Then
171: -- Unique integrity has been violated
172: ben_epr_shd.g_api_dml := false; -- Unset the api dml status
173: ben_epr_shd.constraint_error
166: -- Parent integrity has been violated
167: ben_epr_shd.g_api_dml := false; -- Unset the api dml status
168: ben_epr_shd.constraint_error
169: (p_constraint_name => hr_api.strip_constraint_name(SQLERRM));
170: When hr_api.unique_integrity_violated Then
171: -- Unique integrity has been violated
172: ben_epr_shd.g_api_dml := false; -- Unset the api dml status
173: ben_epr_shd.constraint_error
174: (p_constraint_name => hr_api.strip_constraint_name(SQLERRM));
170: When hr_api.unique_integrity_violated Then
171: -- Unique integrity has been violated
172: ben_epr_shd.g_api_dml := false; -- Unset the api dml status
173: ben_epr_shd.constraint_error
174: (p_constraint_name => hr_api.strip_constraint_name(SQLERRM));
175: When Others Then
176: ben_epr_shd.g_api_dml := false; -- Unset the api dml status
177: Raise;
178: End insert_dml;
325: );
326: --
327: exception
328: --
329: when hr_api.cannot_find_prog_unit then
330: --
331: hr_api.cannot_find_prog_unit_error
332: (p_module_name => 'ben_enrt_prem'
333: ,p_hook_type => 'AI');
327: exception
328: --
329: when hr_api.cannot_find_prog_unit then
330: --
331: hr_api.cannot_find_prog_unit_error
332: (p_module_name => 'ben_enrt_prem'
333: ,p_hook_type => 'AI');
334: --
335: end;