70 this.gender2=gender2;
71 }
72}
73class NotAvailable extends Exception 74{ 75 @Override 76 public String toString() 77 { 78 return "Not Available !"; 79 } 80} 81
82class holder implements Serializable
83{
This class is an exception, but its name does not end in Exception
. This could be confusing to consumers of your API.
class BadName extends Exception {
// ...
}
class ActuallyAnException extends Exception {
// ...
}