[jboss-cvs] jboss-seam/src/main/org/jboss/seam/security ...
Shane Bryzak
Shane_Bryzak at symantec.com
Tue Feb 6 11:27:03 EST 2007
User: sbryzak2
Date: 07/02/06 11:27:03
Modified: src/main/org/jboss/seam/security Identity.java
NotLoggedInException.java
Log:
more descriptive exception
Revision Changes Path
1.52 +2 -1 jboss-seam/src/main/org/jboss/seam/security/Identity.java
(In the diff below, changes in quantity of whitespace are not shown.)
Index: Identity.java
===================================================================
RCS file: /cvsroot/jboss/jboss-seam/src/main/org/jboss/seam/security/Identity.java,v
retrieving revision 1.51
retrieving revision 1.52
diff -u -b -r1.51 -r1.52
--- Identity.java 4 Feb 2007 11:18:07 -0000 1.51
+++ Identity.java 6 Feb 2007 16:27:03 -0000 1.52
@@ -165,7 +165,8 @@
{
if ( !isLoggedIn() )
{
- throw new NotLoggedInException();
+ throw new NotLoggedInException(String.format(
+ "Error evaluating expression [%s] - User not logged in", expr));
}
else
{
1.3 +5 -0 jboss-seam/src/main/org/jboss/seam/security/NotLoggedInException.java
(In the diff below, changes in quantity of whitespace are not shown.)
Index: NotLoggedInException.java
===================================================================
RCS file: /cvsroot/jboss/jboss-seam/src/main/org/jboss/seam/security/NotLoggedInException.java,v
retrieving revision 1.2
retrieving revision 1.3
diff -u -b -r1.2 -r1.3
--- NotLoggedInException.java 27 Jan 2007 11:29:59 -0000 1.2
+++ NotLoggedInException.java 6 Feb 2007 16:27:03 -0000 1.3
@@ -14,4 +14,9 @@
{
super();
}
+
+ public NotLoggedInException(String message)
+ {
+ super(message);
+ }
}
More information about the jboss-cvs-commits
mailing list