Cpp User Defined Exception In Java