Exception handling


I want to add the ability to better track problems with my scripts, primarily exception handling. I see a section specifically called “Exception Handling” and I’m wondering how does Log4j fit in with Exception Handling?

Add Comment
  • 1 Answer(s)
    Best answer

    You can handle exception either by handling them and contonuing or by stopping the application.

    Now in both cases you need to be sure that the reason of exception is trapped and logged in your log files. The logging part is where the Log4j API comes in picture. It simply helps to log exception just like any other logging statement.


    Professor Answered on May 28, 2015.
    Add Comment
  • Your Answer

    By posting your answer, you agree to the privacy policy and terms of service.