Example 2 - UserException Class
    public class UserException extends java.lang.Exception
    {
        public UserException( String msg ) { super(msg); }
        public void setType( int type ) { fType = type; }
        public int getType() { return fType; }
    
        static public int UNKNOWN = 0;
        static public int WRONG_PASSWORD = 1;
    
        private int fType = UserException.UNKNOWN;
    }
            

Next Slide >>