122: --
123: --
124: hr_utility.set_location(' Leaving:'||l_proc, 10);
125: Exception
126: When hr_api.check_integrity_violated Then
127: -- A check constraint has been violated
128: per_rsc_shd.constraint_error
129: (p_constraint_name => hr_api.strip_constraint_name(SQLERRM));
130: When hr_api.parent_integrity_violated Then
125: Exception
126: When hr_api.check_integrity_violated Then
127: -- A check constraint has been violated
128: per_rsc_shd.constraint_error
129: (p_constraint_name => hr_api.strip_constraint_name(SQLERRM));
130: When hr_api.parent_integrity_violated Then
131: -- Parent integrity has been violated
132: per_rsc_shd.constraint_error
133: (p_constraint_name => hr_api.strip_constraint_name(SQLERRM));
126: When hr_api.check_integrity_violated Then
127: -- A check constraint has been violated
128: per_rsc_shd.constraint_error
129: (p_constraint_name => hr_api.strip_constraint_name(SQLERRM));
130: When hr_api.parent_integrity_violated Then
131: -- Parent integrity has been violated
132: per_rsc_shd.constraint_error
133: (p_constraint_name => hr_api.strip_constraint_name(SQLERRM));
134: When hr_api.unique_integrity_violated Then
129: (p_constraint_name => hr_api.strip_constraint_name(SQLERRM));
130: When hr_api.parent_integrity_violated Then
131: -- Parent integrity has been violated
132: per_rsc_shd.constraint_error
133: (p_constraint_name => hr_api.strip_constraint_name(SQLERRM));
134: When hr_api.unique_integrity_violated Then
135: -- Unique integrity has been violated
136: per_rsc_shd.constraint_error
137: (p_constraint_name => hr_api.strip_constraint_name(SQLERRM));
130: When hr_api.parent_integrity_violated Then
131: -- Parent integrity has been violated
132: per_rsc_shd.constraint_error
133: (p_constraint_name => hr_api.strip_constraint_name(SQLERRM));
134: When hr_api.unique_integrity_violated Then
135: -- Unique integrity has been violated
136: per_rsc_shd.constraint_error
137: (p_constraint_name => hr_api.strip_constraint_name(SQLERRM));
138: When Others Then
133: (p_constraint_name => hr_api.strip_constraint_name(SQLERRM));
134: When hr_api.unique_integrity_violated Then
135: -- Unique integrity has been violated
136: per_rsc_shd.constraint_error
137: (p_constraint_name => hr_api.strip_constraint_name(SQLERRM));
138: When Others Then
139: Raise;
140: End insert_dml;
141: --
270: p_attribute19 => p_rec.attribute19 ,
271: p_attribute20 => p_rec.attribute20 );
272:
273: exception
274: when hr_api.cannot_find_prog_unit then
275: hr_api.cannot_find_prog_unit_error
276: ( p_module_name => 'PER_RATING_SCALES'
277: ,p_hook_type => 'AI'
278: );
271: p_attribute20 => p_rec.attribute20 );
272:
273: exception
274: when hr_api.cannot_find_prog_unit then
275: hr_api.cannot_find_prog_unit_error
276: ( p_module_name => 'PER_RATING_SCALES'
277: ,p_hook_type => 'AI'
278: );
279: end;
324: --
325: -- If we are validating then raise the Validate_Enabled exception
326: --
327: If p_validate then
328: Raise HR_Api.Validate_Enabled;
329: End If;
330: --
331: hr_utility.set_location(' Leaving:'||l_proc, 10);
332: Exception
329: End If;
330: --
331: hr_utility.set_location(' Leaving:'||l_proc, 10);
332: Exception
333: When HR_Api.Validate_Enabled Then
334: --
335: -- As the Validate_Enabled exception has been raised
336: -- we must rollback to the savepoint
337: --