1: public class IntException extends Exception
2: {
3: private int intMessage;
4: public IntException( )
5: {
6: super("IntException thrown!");
7: }
8: public IntException(String message)
9: {
10: super(message + " " + message);
11: }
12: public IntException(int number)
13: {
14: super("IntException thrown!");
15: intMessage = number;
16: }
17: public int getNumber( )
18: {
19: return intMessage;
20: }
21: }