Skip to content

Commit f99efb2

Browse files
committed
Moves CLI exceptions to CLI
1 parent 5c4d171 commit f99efb2

5 files changed

Lines changed: 6 additions & 6 deletions

File tree

cli/src/main/java/net/klesatschke/threema/cli/console/commands/fields/Field.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,8 +24,8 @@
2424

2525
package net.klesatschke.threema.cli.console.commands.fields;
2626

27-
import net.klesatschke.threema.api.exceptions.InvalidCommandFieldValueException;
28-
import net.klesatschke.threema.api.exceptions.RequiredCommandFieldMissingException;
27+
import net.klesatschke.threema.cli.exceptions.InvalidCommandFieldValueException;
28+
import net.klesatschke.threema.cli.exceptions.RequiredCommandFieldMissingException;
2929

3030
public abstract class Field {
3131

api/src/main/java/net/klesatschke/threema/api/exceptions/InvalidCommandFieldValueException.java renamed to cli/src/main/java/net/klesatschke/threema/cli/exceptions/InvalidCommandFieldValueException.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222
* THE SOFTWARE
2323
*/
2424

25-
package net.klesatschke.threema.api.exceptions;
25+
package net.klesatschke.threema.cli.exceptions;
2626

2727
/** Exception that gets thrown on a illegal call. */
2828
public class InvalidCommandFieldValueException extends Exception {

api/src/main/java/net/klesatschke/threema/api/exceptions/NotAllowedException.java renamed to cli/src/main/java/net/klesatschke/threema/cli/exceptions/NotAllowedException.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222
* THE SOFTWARE
2323
*/
2424

25-
package net.klesatschke.threema.api.exceptions;
25+
package net.klesatschke.threema.cli.exceptions;
2626

2727
/** Exception that gets thrown on a illegal call. */
2828
public class NotAllowedException extends Exception {

api/src/main/java/net/klesatschke/threema/api/exceptions/RequiredCommandFieldMissingException.java renamed to cli/src/main/java/net/klesatschke/threema/cli/exceptions/RequiredCommandFieldMissingException.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222
* THE SOFTWARE
2323
*/
2424

25-
package net.klesatschke.threema.api.exceptions;
25+
package net.klesatschke.threema.cli.exceptions;
2626

2727
/** Exception that gets thrown on a illegal call. */
2828
public class RequiredCommandFieldMissingException extends Exception {

cli/src/main/java/net/klesatschke/threema/cli/helpers/E2EHelper.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,11 +42,11 @@
4242
import net.klesatschke.threema.api.CryptTool;
4343
import net.klesatschke.threema.api.exceptions.InvalidKeyException;
4444
import net.klesatschke.threema.api.exceptions.MessageParseException;
45-
import net.klesatschke.threema.api.exceptions.NotAllowedException;
4645
import net.klesatschke.threema.api.messages.FileMessage;
4746
import net.klesatschke.threema.api.messages.ImageMessage;
4847
import net.klesatschke.threema.api.messages.ThreemaMessage;
4948
import net.klesatschke.threema.api.results.UploadResult;
49+
import net.klesatschke.threema.cli.exceptions.NotAllowedException;
5050

5151
/** Helper to handle Threema end-to-end encryption. */
5252
public class E2EHelper {

0 commit comments

Comments
 (0)