Skip to Content
0
Jul 12, 2020 at 10:28 AM

catch block printing printStackTrace()

112 Views

Hi

catch block printing printStackTrace()

catch block is of the SMBException and the error is being printed as below

catch (SmbException e) {
manager.reportSuccess("SmbException :" + e.getMessage());
manager.reportSuccess("SmbException local" + e.getLocalizedMessage());
manager.reportSuccess("getNtStatus :"+e.getNtStatus());
//manager.reportSuccess("SmbException : " +e.getLocalizedMessage());
// Auto-generated catch block
if(e.getMessage().contains("parameter")){
Result = true;
logger.fatalT("SmbException :" + e.getMessage());
logger.fatalT("getNtStatus :"+e.getNtStatus());
manager.reportSuccess("SmbException :" + e.getMessage());
manager.reportSuccess("SmbException local" + e.getLocalizedMessage());
manager.reportSuccess("getNtStatus :"+e.getNtStatus());

}else{
Result = false;
}

Thanks

Kaushik Banerjee