Your company can add code to an existing project, for example, an open source database, and could simply add very small code to it. Therefore, in order to keep track of the mistakes that the developers of the company were making, they thought that they would have their own class of exceptions to distinguish the errors that were there before from those caused by the extension. Thus, they can only focus on those that are called by the company’s developers, and perhaps ask the original source code developers to support them.
Over time, when you developed a sufficiently large code base through internal development, you can add more exceptions and remove CompanynameRuntimeException altogother. In addition, they can get more pleasure from the level of expert knowledge of the developers, to allow them to handle all the errors as one, and not to view the suspicions caused by the developers of the company.
source share