I am working on handling exceptions for business processes and I need to get as much information as posible.
So ... When an exception occurs in a snippet, in the console we can see the name of the snippet and the exception. But also we see the line number and the code that generated than exception.
I need to know where can I get that specific information.
This topic has been locked.
Pinned topic Exception information in Snippet
Answered question This question has been answered.
Unanswered question This question has not been answered yet.
SystemAdmin 110000D4XK3556 Posts
Re: Exception information in Snippet2012-08-24T08:57:00ZThis is the accepted answer. This is the accepted answer.use getCurrentFaultAsException() method to get the current fault which is occurred. geter methods are available to dig in to the fault.
SergeyUtkin 270005G07414 Posts
Re: Exception information in Snippet2012-09-10T06:07:45ZThis is the accepted answer. This is the accepted answer.If your code is well designed - you don't need line number. To get the code responsible for the exception in your console - you can use even log4j with some default console appender.
Re: Exception information in Snippet2012-09-12T22:47:25ZThis is the accepted answer. This is the accepted answer.I'm not asking wheter the code is well designed or not i just want to know, where can I get that information?...
mmalc 10000036A9231 Posts
Re: Exception information in Snippet2012-10-07T07:15:47ZThis is the accepted answer. This is the accepted answer.
- rmillav 270005JS00