donaldp     02/01/14 01:02:23

  Modified:    proposal/myrmidon/src/java/org/apache/myrmidon/components/type
                        MultiSourceTypeFactory.java Resources.properties
  Log:
  Provide better error messages
  
  Submitted By: "Adam Murdoch" <[EMAIL PROTECTED]>
  
  Revision  Changes    Path
  1.8       +1 -1      
jakarta-ant/proposal/myrmidon/src/java/org/apache/myrmidon/components/type/MultiSourceTypeFactory.java
  
  Index: MultiSourceTypeFactory.java
  ===================================================================
  RCS file: 
/home/cvs/jakarta-ant/proposal/myrmidon/src/java/org/apache/myrmidon/components/type/MultiSourceTypeFactory.java,v
  retrieving revision 1.7
  retrieving revision 1.8
  diff -u -r1.7 -r1.8
  --- MultiSourceTypeFactory.java       23 Dec 2001 06:25:35 -0000      1.7
  +++ MultiSourceTypeFactory.java       14 Jan 2002 09:02:23 -0000      1.8
  @@ -81,7 +81,7 @@
   
               if( !m_type.isInstance( object ) )
               {
  -                final String message = REZ.getString( "no-factory.error", 
name, m_type.getName() );
  +                final String message = REZ.getString( 
"mismatched-type.error", name, object.getClass().getName() );
                   throw new TypeException( message );
               }
   
  
  
  
  1.3       +2 -2      
jakarta-ant/proposal/myrmidon/src/java/org/apache/myrmidon/components/type/Resources.properties
  
  Index: Resources.properties
  ===================================================================
  RCS file: 
/home/cvs/jakarta-ant/proposal/myrmidon/src/java/org/apache/myrmidon/components/type/Resources.properties,v
  retrieving revision 1.2
  retrieving revision 1.3
  diff -u -r1.2 -r1.3
  --- Resources.properties      29 Aug 2001 16:15:27 -0000      1.2
  +++ Resources.properties      14 Jan 2002 09:02:23 -0000      1.3
  @@ -1,5 +1,5 @@
   no-instantiate.error=Unable to instantiate ({0}).
  -no-mapping.error=Malconfigured factory, no clasname for ({0}).
  +no-mapping.error=Malconfigured factory, no classname for ({0}).
   no-factory.error=Failed to locate factory for {0}.
  -bad-type.error=Object {0} is not of correct Type ({1}).
  +mismatched-type.error=Factory for type {0} created an object of incompatible 
type {1}.
   no-work-interface.error=Role {0} does not specify accessible work interface.
  
  
  

--
To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>

Reply via email to