‎2006 Jan 13 11:23 AM
Hi,
Could anybody tell me the precise difference between an Exception and an Error with example . .
Thanks and regards
--Deepti
‎2006 Jan 13 11:26 AM
Hi Deepti,
exception is a very high level of error, exception will close the current program/transaction with a long message.
an error will only stop the action of the user, the data is not lost.
Rgd
Frédéric
‎2006 Jan 13 11:29 AM
Hi Deepti,
When errors occurs program terminates
abruptly,In order to avoid this we catch this
error as exception.
Ex
when we divide 1 / 0 we get divide error and
program terminates , But we can can avoid this but
raising exception like
when 'Divide error'
message 'Divide Error'.
Regards
Amole
‎2006 Jan 13 11:30 AM
Hi,
Exceptions...we can raise or cath them and handle....
Errors...will be occured automatically.....
Other way is if an error occured...we can rise an exception and handle.......
ex: if a<> 0.
c=b/a.
else.
raise arthemetic_excp.
endif.
We can handle this arthemetic_excp exception ....for ex we can display a msg that..."div by zero not possible".
Sreedhar
‎2006 Jan 13 11:56 AM
Hi Deepti,
Refer this link to learn more about errors and exceptions.
<a href="https://www.sdn.sap.comhttp://www.sdn.sap.comhttp://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/library/uuid/f86c9290-0201-0010-7a93-dda">Exception Handling Concept in ABAP</a>
Regards,
Raj