Skip to content

Commit

Permalink
Fix one violation of G-1050 and explain the other
Browse files Browse the repository at this point in the history
  • Loading branch information
PhilippSalvisberg committed Aug 25, 2023
1 parent a8fca87 commit 349b915
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion docs/4-language-usage/5-exception-handling/g-5050.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,10 @@ If you are not very organized in the way you allocate, define and use the error
## Example (bad)

``` sql
declare
co_invalid_emp_text constant types_up.text := 'Invalid employee_id';
begin
raise_application_error(-20501,'Invalid employee_id');
raise_application_error(-20501 /* violates also G-1010 */,co_invalid_emp_text);
end;
/
```
Expand Down

0 comments on commit 349b915

Please sign in to comment.