X-Git-Url: http://wamblee.org/gitweb/?a=blobdiff_plain;f=security%2Fsrc%2Fmain%2Fjava%2Forg%2Fwamblee%2Fusermgt%2FUserMgtException.java;h=e2f057c0bce8801ff1aff5c1ae07bf690ea6fbf4;hb=0d8d8f24656e585ee75558cfd6a4c661f8f14985;hp=6a96e618c7308240c827e68c7b280f61a0ec3448;hpb=da48a523c81e59fe0eac34e43d12937396161f25;p=utils diff --git a/security/src/main/java/org/wamblee/usermgt/UserMgtException.java b/security/src/main/java/org/wamblee/usermgt/UserMgtException.java index 6a96e618..e2f057c0 100644 --- a/security/src/main/java/org/wamblee/usermgt/UserMgtException.java +++ b/security/src/main/java/org/wamblee/usermgt/UserMgtException.java @@ -69,37 +69,37 @@ public class UserMgtException extends Exception { /** * Cause of the exception. */ - private Reason _cause; + private Reason cause; /** * User or null if no user is relevant for the problem. */ - private User _user; + private User user; /** * Group or null if no group is relevant for the problem. */ - private Group _group; + private Group group; public UserMgtException(Reason aCause, String aMessage) { super(MESSAGES.get(aCause) + ": " + aMessage); - _cause = aCause; + cause = aCause; } public UserMgtException(Reason aCause, User aUser) { this(aCause, "for user '" + aUser.getName() + "'"); - _user = aUser; + user = aUser; } public UserMgtException(Reason aCause, Group aGroup) { this(aCause, "for group '" + aGroup.getName() + "'"); - _group = aGroup; + group = aGroup; } public UserMgtException(Reason aCause, User aUser, Group aGroup) { this(aCause, "for user '" + aUser.getName() + "' and group '" + aGroup.getName() + "'"); - _user = aUser; - _group = aGroup; + user = aUser; + group = aGroup; } /** @@ -107,7 +107,7 @@ public class UserMgtException extends Exception { * @return Cause. */ public Reason getReason() { - return _cause; + return cause; } /** @@ -115,7 +115,7 @@ public class UserMgtException extends Exception { * @return User or null if not applicable. */ public User getUser() { - return _user; + return user; } /** @@ -123,6 +123,6 @@ public class UserMgtException extends Exception { * @return Group or null if not applicable. */ public Group getGroup() { - return _group; + return group; } }