Difference between system exception and business exception

Hello Everyone,
Please tell me the difference, but in a simple way.

Hi @Lakshya_Garg ,

In very simpler way.

System exception - exception occurred due to system ( web application, stand alone application etc.) Eg: application not reachable , Ui element not found etc.

Business exception - the exception occured by business logic not really exception these are user defined example like if employee salary less than 5000 he is not eligible for loan some thing like that we can throw business exception.

Hope it helpful to your question. Thanks.

1 Like

thanks bro for your help.

1 Like

Your welcome bro @Lakshya_Garg any time.

I also have a simple question
Is there any difference between Error & Exception.

Hi @Lakshya_Garg ,

It is very generic question. I will explain in very simpler way.

Error - it is a unknown issue that cannot be handled since we don’t know when it will come. Usually errors will come at run time. Mostly coding issues will cause these errors while developing we don’t know run time may occur.

Exception - it is a know issue that we can handle before itself. Usually we can handle these issues by using try catch activity. Where you think that the exception can occur that code we should keep in try block. Mentioned in previous post system exception or business exception we already aware where we will get.

I hope you got some information. Thanks.

yeah bro get it.
Thanks again
this Information is a lot for me.

1 Like

Your welcome bro.

This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.