Skip to Content.
Sympa Menu

notify-dpml - r854 - trunk/main/depot/core/console/src/main/net/dpml/depot

notify-dpml AT lists.ibiblio.org

Subject: DPML Notify

List archive

Chronological Thread  
  • From: mcconnell at BerliOS <mcconnell AT mail.berlios.de>
  • To: notify-dpml AT lists.ibiblio.org
  • Subject: r854 - trunk/main/depot/core/console/src/main/net/dpml/depot
  • Date: Wed, 4 Jan 2006 19:36:51 +0100

Author: mcconnell
Date: 2006-01-04 19:36:48 +0100 (Wed, 04 Jan 2006)
New Revision: 854

Modified:
trunk/main/depot/core/console/src/main/net/dpml/depot/Main.java
Log:
add exception messages dealing with an invalid invocation of the depot tool

Modified: trunk/main/depot/core/console/src/main/net/dpml/depot/Main.java
===================================================================
--- trunk/main/depot/core/console/src/main/net/dpml/depot/Main.java
2006-01-04 18:25:04 UTC (rev 853)
+++ trunk/main/depot/core/console/src/main/net/dpml/depot/Main.java
2006-01-04 18:36:48 UTC (rev 854)
@@ -478,14 +478,25 @@
{
super( label );
}
-
+
/**
* Create a now mode using a supplied mode name.
* @param value the mode name
* @return the mode
+ * @exception NullPointerException if the supplied value is null
+ * @exception IllegalArgumentException if the supplied value is not
recognized
*/
- public static Command parse( String value )
+ public static Command parse( String value ) throws
NullPointerException, IllegalArgumentException
{
+ if( null == value )
+ {
+ final String error =
+ "Undefined sub-system identifier."
+ + "\nThe depot cli handler must be supplied with an -D"
+ + APPLICATION_KEY + "=[id] where id is one of the value
'dpml.metro', "
+ + "'dpml.transit', 'dpml.station' or 'dpml.build'.";
+ throw new NullPointerException( error );
+ }
if( value.equalsIgnoreCase( "dpml.metro" ) )
{
return METRO;




  • r854 - trunk/main/depot/core/console/src/main/net/dpml/depot, mcconnell at BerliOS, 01/04/2006

Archive powered by MHonArc 2.6.24.

Top of Page