Author: jtravis
Date: 2007-03-21 15:47:00 -0800 (Wed, 21 Mar 2007)
New Revision: 3805
URL: http://svn.hyperic.org/?view=rev&root=Hyperic+HQ&revision=3805
Modified:
trunk/src/org/hyperic/hq/ui/rendit/rendit_sys/org/hyperic/hq/rendit/dispatcher.groovy
Log:
Cleanup exception handling and log output
Modified: trunk/src/org/hyperic/hq/ui/rendit/rendit_sys/org/hyperic/hq/rendit/dispatcher.groovy
===================================================================
--- trunk/src/org/hyperic/hq/ui/rendit/rendit_sys/org/hyperic/hq/rendit/dispatcher.groovy 2007-03-21 23:38:51 UTC (rev 3804)
+++ trunk/src/org/hyperic/hq/ui/rendit/rendit_sys/org/hyperic/hq/rendit/dispatcher.groovy 2007-03-21 23:47:00 UTC (rev 3805)
@@ -37,15 +37,9 @@
}
def invoke() {
- def controller
-
- try {
- controller = Class.forName(controllerName, true,
- this.class.classLoader).newInstance()
- } catch(Exception e) {
- throw new IllegalArgumentException("Unknown controller " +
- "[$controller]")
- }
+ log.info "Controller name is $controllerName"
+ def controller = Class.forName(controllerName, true,
+ this.class.classLoader).newInstance()
controller.setAction(action)
controller.setPluginDir(pluginDir)
|