import org.mxchange.jcore.client.gui.ClientFrame;
import org.mxchange.jcore.contact.Contact;
import org.mxchange.jcore.contact.Gender;
+import org.mxchange.jcore.exceptions.BadTokenException;
import org.mxchange.jcore.exceptions.FrameAlreadyInitializedException;
import org.mxchange.jcore.model.swing.contact.ContactTableModel;
* @param client Client instance
*/
@Override
- public void setupFrame (final Client client) {
+ public void setupFrame (final Client client) throws IOException, BadTokenException {
// Debug line
this.getLogger().trace(MessageFormat.format("client={0}: CALLED!", client)); //NOI18N
// Already added, log away
// @TODO maybe output message here?
self.logException(ex);
+ } catch (final IOException | BadTokenException ex) {
+ // Somethind bad happened here
+ // @TODO Output error message here?
}
}
});
@Override
public void actionPerformed (final ActionEvent e) {
ManageableAddressbookContact manager = (ManageableAddressbookContact) self.getClient().getManager();
- manager.doChangeOwnData();
+ try {
+ manager.doChangeOwnData();
+ } catch (final IOException | BadTokenException ex) {
+ self.logException(ex);
+ }
}
});