hi
i have a method in domain which validate an input text
void setApplicationRegNo(String idNumber) {
def paddedId = "00000"
try {
paddedId = String.format('%05d',Integer.parseInt(idNumber))
}
catch(NumberFormatException ex) {
throw new Exception("Please enter a correct Application Reg No")
}
}
i want to print the "please enter a correct application reg no in my
web page when error occurs. but it print this
"Property applicationRegNo threw exception; nested exception is
java.lang.Exception: Please enter a correct Application Reg No"
please help to solve this