Even though I have entered a custom message, that is not being printed when I print the message. Code below:
public void run() throws Exception {
try {
String poNumber=null;
if(poNumber.equals(null))
{
throw new Exception("Services Purchase Order not created.");
}
}
catch (Exception e) {
info("Custom Exception Message: "+e.getMessage());
}
}
OUTPUT:
Custom Exception Message: null