Java Custom Exception With Errors