I am trying to create an error handler that will take an error message and print it to the logging file. Is there a way I can get the massage if I use a try/catch like this?
try{
//code;
}catch(Exception e){
Main.error=e.?;
}
I have tried e.getMessage() but it only returns null. Thanks in advance