From e2a36baa450dfb23d33538bef2f6765444edc04d Mon Sep 17 00:00:00 2001 From: Roland Haeder Date: Tue, 6 Oct 2015 12:12:30 +0200 Subject: [PATCH] =?utf8?q?updated=20jars=20+=20added=20new=20exceptions=20?= =?utf8?q?for=20user=20Signed-off-by:Roland=20H=C3=A4der=20?= MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit --- lib/jcontacts-core.jar | Bin 18555 -> 18203 bytes lib/jcore.jar | Bin 13647 -> 13647 bytes lib/jcoreee.jar | Bin 19814 -> 18176 bytes .../exceptions/UserNotFoundException.java | 43 ++++++++++++++++++ .../exceptions/UserStatusLockedException.java | 43 ++++++++++++++++++ .../UserStatusUnconfirmedException.java | 43 ++++++++++++++++++ 6 files changed, 129 insertions(+) create mode 100644 src/org/mxchange/jusercore/exceptions/UserNotFoundException.java create mode 100644 src/org/mxchange/jusercore/exceptions/UserStatusLockedException.java create mode 100644 src/org/mxchange/jusercore/exceptions/UserStatusUnconfirmedException.java diff --git a/lib/jcontacts-core.jar b/lib/jcontacts-core.jar index 60d3cc88e52b6a8bfa6ca7b45f787c3a8290892e..5fd68dc8f80098600ff320c77eef156f7e79d9d2 100644 GIT binary patch delta 5363 zcmaJ_33yaj75?v=nY?83vXF!XvOw4pG6_w{o)7|sEKr0}xb6-58@-kW6d^2YhTIrqQYIsZL( zJNI4Qq8{0#jG5DX{vZ$!3|z6*DAF=kY^~X$5ueEy`F;_lnWriwnWe@_vRO@%r>%8u<`?>-^mpMdh2u{$^pkus_M)UQQdUKa{x?_`XrB97Auf|QUO9%W485n4# znMkzKEF@X!APlzBY~)yJu2Y|fB=bSNhB}_p3zyn`N}WDsPMfh#zTDAK;pnJDm8Gj1 zHC9@SIsgjwlp4lG55J}LmP>o$F60C9FEbaY;pXc2>~LccQ}9j#3UFS;yCN>=xEPPW z1`)vDg3P~{h(f#<#QXSr5dXkGC3{IK{w3%GK_3eGx1h^{t_b>%psRxZOQb-glpsxz zPmn(>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PA&n?5QXoGRT*AL?Cj3p%D<4w3W)==l z7-(Nc7=k;TP^1}RD#r%17`afTFU8mBov zvKBW@&6Urt&d-hnX#RGruT3y+YRuzzog9&HwkcbCJZQG$RwNk(&8gB_)ts%JDvz|* rj*T;pmc=JepQ5xheo?f(2OHZtYFiCQ4K$vw%{Q(#r^nA~6fGYEZ=85V diff --git a/lib/jcore.jar b/lib/jcore.jar index 2c6f30efe9f8c246eae16a87aef835bb909ba01d..b506a165e930439400060fff313b735ea2ad09f3 100644 GIT binary patch delta 461 zcmX?~bv}zXz?+$ci-CcIfniFd+eBUs=E*?HVj44ucTpZpebxX`ljRuoz_dT36^Ne1 zq%wH}qaax52%{xL$P~=AU@`;Kg-lK$dh<4>lRSbzhP%k5$6FYg7#KiUd$OX6*yQ^L z5}Wt&b2EX}oe{jn2xhDlehgvsi#}%ti&RQpV+0$K_0}iw2qOan2)lrdm?O(QdA*U^ z=H=4oAet&tf zdAamCh^7kJPKbFd3jPpAn9?qYl(32~gpsV8%mz02r1n&>$mB#_3y|L@&(XC9Nld<{ zs}H6H^en)%x1JrC?$PrC)4BT6lfUR`f!T`so=`DYFuhgZ4NU*j4+7J{2H{|Otw9)= zW;2Wi(cmYT>atBB@;6M%0gYUU AA^-pY diff --git a/lib/jcoreee.jar b/lib/jcoreee.jar index 19ec1c4c0c5355690db3b56b7a5d61624e477181..d87f56db099dbce4c0917c934638141e43c7b492 100644 GIT binary patch delta 4367 zcma)AeN2_t9e&>X!MXRnFCdo>xkB-Z2t__FAc9;(LF?sHL~T{HQcy06y#+;Vt!=$H zE7q+ac5j*Z^Spd^-WYq{u)5lvE)(zo$`Il#kmFr@lgqh*d;G=!9!T!*Zq3F?rG!X4C zx0_a%In%M-PA&hp-4k47ug}IFJS> z>)Z(6nQRHMG+4TqUxx7mJtT{7nGED(A>USF0J0GPTw*YXExGJ*v6Oh;gFKq1IpY)* z#{=;*M%Z0C2}d}|S)&53uqWX8u*U1GF*D6f?**(5crwkZurH7l@J+&b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E0$5AfG&~Oa`tUlF)5mZswL7`Rn^k`p=zx()2bV!>91~)=34bmX$opuqfa^3$r|<9 zuAnBz`n0A(MvH4V=YRDJ9*v3poj-KHUB2h7i2r01{hrs-pxLI_xw}NZsOY==X!AiA zAeZdb_}}?MS9R<8+8Xtq$)7gHMS$~%o=%YWs1F@RFhvR9s<>Ent(cId@U{#ke6Vhj z5-j*)*GsSP+oN0?CJ6=$m0*5;z#7*&IX{_@K7XjMSP4&LE7O(s58fy{dW4$gYM79x z8MO=ICZt*kbNyCQ&{UHq^Wwy;^M}e8t4SY`C25iz!jr)q+fS<0=+)r-gmk*|c^!CB HvPAqF+Da`g diff --git a/src/org/mxchange/jusercore/exceptions/UserNotFoundException.java b/src/org/mxchange/jusercore/exceptions/UserNotFoundException.java new file mode 100644 index 0000000..e10b64b --- /dev/null +++ b/src/org/mxchange/jusercore/exceptions/UserNotFoundException.java @@ -0,0 +1,43 @@ +/* + * Copyright (C) 2015 Roland Haeder + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program. If not, see . + */ +package org.mxchange.jusercore.exceptions; + +import java.text.MessageFormat; +import org.mxchange.jusercore.model.user.User; + +/** + * An exception thrown when the user's account was not found + *

+ * @author Roland Haeder + */ +public class UserNotFoundException extends Exception { + + /** + * Serial number + */ + private static final long serialVersionUID = 42_895_928_956_718_956L; + + /** + * Constructor with already registered user instance + *

+ * @param user User instance + */ + public UserNotFoundException (final User user) { + // Call super contructor + super(MessageFormat.format("User name {0} not found.", user.getUserName())); + } +} diff --git a/src/org/mxchange/jusercore/exceptions/UserStatusLockedException.java b/src/org/mxchange/jusercore/exceptions/UserStatusLockedException.java new file mode 100644 index 0000000..1e785e1 --- /dev/null +++ b/src/org/mxchange/jusercore/exceptions/UserStatusLockedException.java @@ -0,0 +1,43 @@ +/* + * Copyright (C) 2015 Roland Haeder + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program. If not, see . + */ +package org.mxchange.jusercore.exceptions; + +import java.text.MessageFormat; +import org.mxchange.jusercore.model.user.User; + +/** + * An exception thrown when the user account is locked + *

+ * @author Roland Haeder + */ +public class UserStatusLockedException extends Exception { + + /** + * Serial number + */ + private static final long serialVersionUID = 438_395_891_288_681L; + + /** + * Constructor with already registered user instance + *

+ * @param user User instance + */ + public UserStatusLockedException (final User user) { + // Call super contructor + super(MessageFormat.format("User account with user name {0} is locked.", user.getUserName())); + } +} diff --git a/src/org/mxchange/jusercore/exceptions/UserStatusUnconfirmedException.java b/src/org/mxchange/jusercore/exceptions/UserStatusUnconfirmedException.java new file mode 100644 index 0000000..68779d6 --- /dev/null +++ b/src/org/mxchange/jusercore/exceptions/UserStatusUnconfirmedException.java @@ -0,0 +1,43 @@ +/* + * Copyright (C) 2015 Roland Haeder + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program. If not, see . + */ +package org.mxchange.jusercore.exceptions; + +import java.text.MessageFormat; +import org.mxchange.jusercore.model.user.User; + +/** + * An exception thrown when the user account is unconfirmed + *

+ * @author Roland Haeder + */ +public class UserStatusUnconfirmedException extends Exception { + + /** + * Serial number + */ + private static final long serialVersionUID = 438_395_891_288_681L; + + /** + * Constructor with already registered user instance + *

+ * @param user User instance + */ + public UserStatusUnconfirmedException (final User user) { + // Call super contructor + super(MessageFormat.format("User account with user name {0} is unconfirmed.", user.getUserName())); + } +} -- 2.39.5