Author: brett
Date: Mon Dec 19 01:17:58 2011
New Revision: 1220581

URL: http://svn.apache.org/viewvc?rev=1220581&view=rev
Log:
adjust exception used for compilation success

Modified:
    
incubator/npanday/trunk/components/dotnet-executable/src/main/java/npanday/executable/CommandFilter.java
    
incubator/npanday/trunk/components/dotnet-executable/src/main/java/npanday/executable/compiler/impl/AspxCompiler.java

Modified: 
incubator/npanday/trunk/components/dotnet-executable/src/main/java/npanday/executable/CommandFilter.java
URL: 
http://svn.apache.org/viewvc/incubator/npanday/trunk/components/dotnet-executable/src/main/java/npanday/executable/CommandFilter.java?rev=1220581&r1=1220580&r2=1220581&view=diff
==============================================================================
--- 
incubator/npanday/trunk/components/dotnet-executable/src/main/java/npanday/executable/CommandFilter.java
 (original)
+++ 
incubator/npanday/trunk/components/dotnet-executable/src/main/java/npanday/executable/CommandFilter.java
 Mon Dec 19 01:17:58 2011
@@ -45,7 +45,7 @@ public interface CommandFilter
      * <code>NullPointerException</code> if it is.
      * @return a list of filtered commands.
      */
-    List<String> filter( Collection<String> commands ) throws 
PlatformUnsupportedException;
+    List<String> filter( Collection<String> commands ) throws 
ExecutionException;
 
     /**
      * Provides factory methods for creating command filters.
@@ -75,7 +75,7 @@ public interface CommandFilter
             return new CommandFilter()
             {
                 public List<String> filter( Collection<String> commands )
-                    throws PlatformUnsupportedException
+                    throws ExecutionException
                 {
 
                     List<String> includes = ( capability != null && 
capability.getIncludes() != null )
@@ -91,7 +91,7 @@ public interface CommandFilter
                         for( String command : commands){
                             if ( doesInclude( excludes, command )){
                                 // TODO: is the exception type right here? 
maybe it should be a specific exception
-                                throw new PlatformUnsupportedException(
+                                throw new ExecutionException(
                                     "NPANDAY-060-001: The command '" + command 
+ "' is unsupported for the targeted "
                                         + "platform or executable."
                                 );

Modified: 
incubator/npanday/trunk/components/dotnet-executable/src/main/java/npanday/executable/compiler/impl/AspxCompiler.java
URL: 
http://svn.apache.org/viewvc/incubator/npanday/trunk/components/dotnet-executable/src/main/java/npanday/executable/compiler/impl/AspxCompiler.java?rev=1220581&r1=1220580&r2=1220581&view=diff
==============================================================================
--- 
incubator/npanday/trunk/components/dotnet-executable/src/main/java/npanday/executable/compiler/impl/AspxCompiler.java
 (original)
+++ 
incubator/npanday/trunk/components/dotnet-executable/src/main/java/npanday/executable/compiler/impl/AspxCompiler.java
 Mon Dec 19 01:17:58 2011
@@ -21,7 +21,6 @@ package npanday.executable.compiler.impl
 import npanday.executable.CommandExecutor;
 import npanday.executable.CommandFilter;
 import npanday.executable.ExecutionException;
-import npanday.executable.compiler.CompilerConfig;
 
 import java.util.ArrayList;
 import java.util.List;


Reply via email to