Illegal exception occurs when user declares a standard exception.

Software ResiliencyCode Reliability

Why you should care

In PLSQL, an exception is a warning or a type of error condition. They can internally defined (by the run-time system) or user defined. An illegal exception occurs when a standard exception is declared by the user because such expressions are declared by PLSQL.

Having illegal expressions in the code can decrease code reliability which can cause the code to be prone to errors.

Business Impacts

Illegal exceptions are highly risky to the code as they are considered to be a warning that needs to be addressed quickly. They cause the code to be greatly unproductive.

Production Risk
5362

CAST Recommendations

References

https://docs.oracle.com/cd/A97630_01/appdev.920/a96624/07_errs.htm

Style Guide

How we detect

This code insight does not recommend declaring standard exceptions.

5362

About CAST and Highlight’s Code Insights

Over the last 25 years, CAST has leveraged unique knowledge on software quality measurement by analyzing thousands of applications and billions of lines of code. Based on this experience and community standards on programming best practices, Highlight implements hundreds of code insights across 15+ technologies to calculate health factors of a software.

See featuresHow it works