excludes=
file.reference.commons-codec-1.10.jar=lib/commons-codec-1.10.jar
file.reference.commons-lang3-3.4.jar=lib/commons-lang3-3.4.jar
+file.reference.jcore.jar=lib/jcore.jar
file.reference.jswingcore.jar=lib/jswingcore.jar
file.reference.log4j-api-2.3.jar=lib/log4j-api-2.3.jar
file.reference.log4j-core-2.3.jar=lib/log4j-core-2.3.jar
-file.reference.jcore.jar=./lib/jcore.jar
includes=**
jar.archive.disabled=${jnlp.enabled}
jar.compress=false
jar.index=${jnlp.enabled}
javac.classpath=\
- ${file.reference.log4j-api-2.3.jar}:\
- ${file.reference.log4j-core-2.3.jar}:\
${file.reference.jcore.jar}:\
+ ${file.reference.jswingcore.jar}:\
${file.reference.commons-codec-1.10.jar}:\
${file.reference.commons-lang3-3.4.jar}:\
- ${file.reference.jswingcore.jar}
+ ${file.reference.log4j-api-2.3.jar}:\
+ ${file.reference.log4j-core-2.3.jar}
# Space-separated list of extra javac options
javac.compilerargs=-Xlint:deprecation -Xlint:unchecked
javac.deprecation=true
source.encoding=UTF-8
source.reference.jcore.jar=../jcore/src/
source.reference.jswingcore.jar=../jswingcore/src/
-source.reference.log4j-api-2.3.jar=/home/quix0r/MyProjects/JARs/log4j-api-2.3-sources.jar
-source.reference.log4j-core-2.3.jar=/home/quix0r/MyProjects/JARs/log4j-core-2.3-sources.jar
src.dir=src
test.src.dir=test
this.initProperties();
// Is the bundle initialized?
- if (!this.isBundledInitialized()) {
+ if (!isBundledInitialized()) {
// Temporary initialize default bundle
// TODO The enum Gender uses this
this.initBundle();
import org.mxchange.addressbook.menu.Menu;
import org.mxchange.jcore.client.BaseClient;
import org.mxchange.jcore.client.Client;
-import org.mxchange.jcore.exceptions.UnsupportedDatabaseBackendException;
import org.mxchange.jcore.manager.database.ManageableDatabase;
/**
/**
* Initializes contact manager
- * @throws org.mxchange.jcore.exceptions.UnsupportedDatabaseBackendException If the database backend is not supported
* @throws java.sql.SQLException If any SQL error occurs
*/
- protected void initContactManager () throws UnsupportedDatabaseBackendException, SQLException {
+ protected void initContactManager () throws SQLException {
// Trace message
this.getLogger().trace("CALLED!"); //NOI18N
import org.mxchange.jcore.application.Application;
import org.mxchange.jcore.contact.Contact;
import org.mxchange.jcore.contact.gender.Gender;
-import org.mxchange.jcore.exceptions.BadTokenException;
-import org.mxchange.jcore.exceptions.CorruptedDatabaseFileException;
import org.mxchange.jcore.exceptions.UnhandledUserChoiceException;
-import org.mxchange.jcore.exceptions.UnsupportedDatabaseBackendException;
/**
* A client for the console
// TODO throw own exception
throw new UnhandledUserChoiceException(MessageFormat.format("Choice '{0}' not handled yet.", choice)); //NOI18N
}
- } catch (final IOException | BadTokenException | CorruptedDatabaseFileException | SQLException | NoSuchMethodException | IllegalAccessException | InvocationTargetException ex) {
+ } catch (final IOException | SQLException | NoSuchMethodException | IllegalAccessException | InvocationTargetException ex) {
// Something bad happened
this.abortProgramWithException(ex);
}
// Init contact manager here
try {
this.initContactManager();
- } catch (final UnsupportedDatabaseBackendException | SQLException ex) {
+ } catch (final SQLException ex) {
// End here
this.abortProgramWithException(ex);
}
import org.mxchange.jcore.client.Client;
import org.mxchange.jcore.contact.Contact;
import org.mxchange.jcore.contact.gender.Gender;
-import org.mxchange.jcore.exceptions.BadTokenException;
-import org.mxchange.jcore.exceptions.CorruptedDatabaseFileException;
import org.mxchange.jcore.exceptions.FrameAlreadyInitializedException;
import org.mxchange.jswingcore.client.gui.ClientFrame;
import org.mxchange.jswingcore.model.swing.contact.ContactTableModel;
* @param client Client instance
*/
@Override
- public void setupFrame (final Client client) throws IOException, BadTokenException {
+ public void setupFrame (final Client client) throws IOException {
// 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) {
+ } catch (final IOException ex) {
// Somethind bad happened here
// TODO Output error message here?
}
public void actionPerformed (final ActionEvent e) {
try {
((ManageableAddressbookContact) self.getClient().getManager()).doChangeOwnData();
- } catch (final IOException | BadTokenException | CorruptedDatabaseFileException | SQLException | NoSuchMethodException | IllegalAccessException | InvocationTargetException ex) {
+ } catch (final IOException | SQLException | NoSuchMethodException | IllegalAccessException | InvocationTargetException ex) {
self.logException(ex);
}
}
import org.mxchange.jcore.application.Application;
import org.mxchange.jcore.contact.Contact;
import org.mxchange.jcore.contact.gender.Gender;
-import org.mxchange.jcore.exceptions.BadTokenException;
import org.mxchange.jcore.exceptions.FrameAlreadyInitializedException;
import org.mxchange.jcore.exceptions.UnhandledUserChoiceException;
-import org.mxchange.jcore.exceptions.UnsupportedDatabaseBackendException;
import org.mxchange.jswingcore.client.gui.ClientFrame;
/**
// Now start the frame
this.frame.setupFrame(this);
- } catch (final FrameAlreadyInitializedException | UnsupportedDatabaseBackendException | IOException | BadTokenException | SQLException ex) {
+ } catch (final FrameAlreadyInitializedException | IOException | SQLException ex) {
// Abort program
this.abortProgramWithException(ex);
}
import org.mxchange.jcore.client.Client;
import org.mxchange.jcore.contact.Contact;
import org.mxchange.jcore.contact.gender.Gender;
-import org.mxchange.jcore.database.frontend.DatabaseFrontend;
-import org.mxchange.jcore.database.storage.Storable;
-import org.mxchange.jcore.exceptions.BadTokenException;
-import org.mxchange.jcore.exceptions.CorruptedDatabaseFileException;
import org.mxchange.jcore.exceptions.UnhandledUserChoiceException;
-import org.mxchange.jcore.exceptions.UnsupportedDatabaseBackendException;
import org.mxchange.jcore.manager.BaseManager;
/**
* a client instance.
*
* @param client Client instance to use
- * @throws org.mxchange.jcore.exceptions.UnsupportedDatabaseBackendException If the configured database backend is not supported
* @throws java.sql.SQLException If an SQL error occurs
*/
- public AddressbookContactManager (final Client client) throws UnsupportedDatabaseBackendException, SQLException {
+ public AddressbookContactManager (final Client client) throws SQLException {
// Trace message
this.getLogger().trace(MessageFormat.format("client={1} - CALLED!", client)); //NOI18N
* Allows the user to change his/her own data
*/
@Override
- public void doChangeOwnData () throws IOException , BadTokenException, CorruptedDatabaseFileException, SQLException, NoSuchMethodException, IllegalAccessException, InvocationTargetException{
+ public void doChangeOwnData () throws IOException, SQLException, NoSuchMethodException, IllegalAccessException, InvocationTargetException{
// Trace message
this.getLogger().trace("CALLED!"); //NOI18N
* Asks user for own data
*/
@Override
- public void doEnterOwnData () throws ContactAlreadyAddedException, IOException , BadTokenException {
+ public void doEnterOwnData () throws ContactAlreadyAddedException, IOException {
// Trace message
this.getLogger().trace("CALLED!"); //NOI18N
* @return Whether own contact is already added
*/
@Override
- public boolean isOwnContactAdded () throws IOException, BadTokenException {
+ public boolean isOwnContactAdded () throws IOException {
// Trace message
this.getLogger().trace("CALLED!"); //NOI18N
try {
// Deligate this call to frontend
isAdded = ((AddressbookContactFrontend) this.getFrontend()).isOwnContactFound();
- } catch (final SQLException | IOException | BadTokenException | CorruptedDatabaseFileException | NoSuchMethodException | IllegalAccessException | InvocationTargetException ex) {
+ } catch (final SQLException | IOException | NoSuchMethodException | IllegalAccessException | InvocationTargetException ex) {
// Something bad happened
this.abortProgramWithException(ex);
}
// Add contact to internal list
this.addContact(contact);
- } catch (final ContactAlreadyAddedException | BadTokenException | SQLException | IOException | CorruptedDatabaseFileException | NoSuchMethodException | IllegalAccessException | InvocationTargetException ex) {
+ } catch (final ContactAlreadyAddedException | SQLException | IOException | NoSuchMethodException | IllegalAccessException | InvocationTargetException ex) {
// Abort here
this.abortProgramWithException(ex);
}
* @return Contact instance or null
* @throws java.sql.SQLException If an SQL error occurs
* @throws java.io.IOException If an IO error occurs
- * @throws org.mxchange.jcore.exceptions.BadTokenException Continued throw
- * @throws org.mxchange.jcore.exceptions.CorruptedDatabaseFileException If the database file is damaged
* @throws java.lang.NoSuchMethodException If a method cannot be found
* @throws java.lang.IllegalAccessException If a method is not accessible
* @throws java.lang.reflect.InvocationTargetException Any other problems?
*/
- private Contact getOwnContact () throws IOException, BadTokenException, CorruptedDatabaseFileException, SQLException, NoSuchMethodException, IllegalAccessException, InvocationTargetException {
+ private Contact getOwnContact () throws IOException, SQLException, NoSuchMethodException, IllegalAccessException, InvocationTargetException {
// Trace message
this.getLogger().trace("CALLED!"); //NOI18N
import org.mxchange.addressbook.exceptions.ContactAlreadyAddedException;
import org.mxchange.jcore.contact.Contact;
import org.mxchange.jcore.contact.gender.Gender;
-import org.mxchange.jcore.exceptions.BadTokenException;
-import org.mxchange.jcore.exceptions.CorruptedDatabaseFileException;
import org.mxchange.jcore.manager.database.ManageableDatabase;
/**
* Let the user change own data
* @throws java.sql.SQLException If an SQL error occurs
* @throws java.io.IOException If an IO error occurs
- * @throws org.mxchange.jcore.exceptions.BadTokenException Continued throw
- * @throws org.mxchange.jcore.exceptions.CorruptedDatabaseFileException If the database file is damaged
* @throws java.lang.NoSuchMethodException If a method cannot be found
* @throws java.lang.IllegalAccessException If a method is not accessible
* @throws java.lang.reflect.InvocationTargetException Any other problems?
*/
- public void doChangeOwnData () throws IOException , BadTokenException, CorruptedDatabaseFileException, SQLException, NoSuchMethodException, IllegalAccessException, InvocationTargetException;
+ public void doChangeOwnData () throws IOException , SQLException, NoSuchMethodException, IllegalAccessException, InvocationTargetException;
/**
* Let the user delete other address
* Asks user for own data
* @throws org.mxchange.addressbook.exceptions.ContactAlreadyAddedException If own contact is already added
* @throws java.io.IOException If an IO error was found
- * @throws org.mxchange.jcore.exceptions.BadTokenException If a bad token was found
*/
- public void doEnterOwnData () throws ContactAlreadyAddedException, IOException , BadTokenException;
+ public void doEnterOwnData () throws ContactAlreadyAddedException, IOException;
/**
* Searches address book for a contact
*
* @return Whether own contact is already added
* @throws java.io.IOException If an IO error occurs
- * @throws org.mxchange.jcore.exceptions.BadTokenException If a bad token was found
*/
- public boolean isOwnContactAdded () throws IOException, BadTokenException;
+ public boolean isOwnContactAdded () throws IOException;
}