Quality is delighting customers
pls explain what kind of exception u r getting while running u'r script
Question is any kind of exception, Suppose you may get exceptions after debugging the script i.e., while executing the scenario.
What logs you are looking for? you application/web serverlogs or jetty or webdriver logs? if you are looking for exception handling you can write code to check if exception is displayed on a page and even take screen shot to analysis it later.
Are you talking in the context of Automation Framework?
you can store log by using java Logger class.
What do u mean by handling exception? use java exception handling mechanism.