Prefer RAISE EXCEPTION with MESSAGE

 home  single file   example  edit

prefer_raise_message

Description

Prefer RAISE EXCEPTION with MESSAGE instead of supplying parameter TEXT

Extended Information

Reports RAISE EXCEPTION statements where parameter TEXT is supplied.

Use a message class instead, so the text is translatable and can be found via where-used.

Exception classes can be excluded via configuration "ignoreExceptionClasses".

Default Configuration

Hover to see descriptions, Ctrl+Space for suggestions

Examples