How to print the error line in a java agen

Subject: how to print the error line in a java agen

Subject: how to print the error line in a java agen

try{

// Your code goes here

}

catch (NotesException e) {

// Handler for Notes Errors

System.err.println(“Notes Error: “+e.id+”:”+e.text);

e.printStackTrace();

}

catch (Exception e) {

// Handler for Other Errors

System.err.println(“Java Error:”+e.getMessage());

e.printStackTrace();

}

Adapt as required.

cheers,

Bram