avalon-cvs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From pro...@apache.org
Subject cvs commit: jakarta-avalon-apps/phyre/src/java/org/apache/avalon/phyre/mbean MBeanAccessor.java
Date Wed, 31 Jul 2002 20:39:42 GMT
proyal      2002/07/31 13:39:42

  Modified:    phyre/src/java/org/apache/avalon/phyre/mbean
                        MBeanAccessor.java
  Log:
  Throw phyre runtime exceptions
  
  Revision  Changes    Path
  1.2       +4 -2      jakarta-avalon-apps/phyre/src/java/org/apache/avalon/phyre/mbean/MBeanAccessor.java
  
  Index: MBeanAccessor.java
  ===================================================================
  RCS file: /home/cvs/jakarta-avalon-apps/phyre/src/java/org/apache/avalon/phyre/mbean/MBeanAccessor.java,v
  retrieving revision 1.1
  retrieving revision 1.2
  diff -u -r1.1 -r1.2
  --- MBeanAccessor.java	26 Jul 2002 20:16:36 -0000	1.1
  +++ MBeanAccessor.java	31 Jul 2002 20:39:42 -0000	1.2
  @@ -9,6 +9,8 @@
   import javax.management.ObjectName;
   import javax.management.ReflectionException;
   
  +import org.apache.avalon.phyre.PhyreRuntimeException;
  +
   import mx4j.connector.RemoteMBeanServer;
   
   /**
  @@ -146,13 +148,13 @@
           }
           catch( InstanceNotFoundException e )
           {
  -            throw new RuntimeException( "Unable to locate MBean: " + e.getMessage() );
  +            throw new PhyreRuntimeException( "Unable to locate MBean: " + e.getMessage(),
e );
           }
           catch( MBeanException e )
           {
               e.printStackTrace();
   
  -            throw new RuntimeException( "Exception invoking method: " + e.getMessage()
);
  +            throw new PhyreRuntimeException( "Exception invoking method: " + e.getMessage(),
e );
           }
           catch( ReflectionException e )
           {
  
  
  

--
To unsubscribe, e-mail:   <mailto:avalon-cvs-unsubscribe@jakarta.apache.org>
For additional commands, e-mail: <mailto:avalon-cvs-help@jakarta.apache.org>


Mime
View raw message