incubator-isis-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From rmatth...@apache.org
Subject svn commit: r1355098 - /incubator/isis/trunk/framework/viewer/scimpi/scimpi-dispatcher/src/main/java/org/apache/isis/viewer/scimpi/dispatcher/context/RequestContext.java
Date Thu, 28 Jun 2012 18:33:43 GMT
Author: rmatthews
Date: Thu Jun 28 18:33:43 2012
New Revision: 1355098

URL: http://svn.apache.org/viewvc?rev=1355098&view=rev
Log:
ISIS 162 - throw an exception if scope not valid

Modified:
    incubator/isis/trunk/framework/viewer/scimpi/scimpi-dispatcher/src/main/java/org/apache/isis/viewer/scimpi/dispatcher/context/RequestContext.java

Modified: incubator/isis/trunk/framework/viewer/scimpi/scimpi-dispatcher/src/main/java/org/apache/isis/viewer/scimpi/dispatcher/context/RequestContext.java
URL: http://svn.apache.org/viewvc/incubator/isis/trunk/framework/viewer/scimpi/scimpi-dispatcher/src/main/java/org/apache/isis/viewer/scimpi/dispatcher/context/RequestContext.java?rev=1355098&r1=1355097&r2=1355098&view=diff
==============================================================================
--- incubator/isis/trunk/framework/viewer/scimpi/scimpi-dispatcher/src/main/java/org/apache/isis/viewer/scimpi/dispatcher/context/RequestContext.java
(original)
+++ incubator/isis/trunk/framework/viewer/scimpi/scimpi-dispatcher/src/main/java/org/apache/isis/viewer/scimpi/dispatcher/context/RequestContext.java
Thu Jun 28 18:33:43 2012
@@ -77,7 +77,7 @@ public abstract class RequestContext {
         } else if (name.equals(Scope.REQUEST.toString())) {
             return Scope.REQUEST;
         }
-        return null;
+        throw new IllegalArgumentException("Invalid scope name: " + scopeName); 
     }
 
     public static Scope scope(final String scopeName, final Scope defaultScope) {



Mime
View raw message