Package javax.management

Examples of javax.management.RuntimeMBeanException


/*     */     catch (InvocationTargetException e)
/*     */     {
/* 212 */       Throwable t = e.getTargetException();
/* 213 */       if ((t instanceof RuntimeException))
/*     */       {
/* 215 */         throw new RuntimeMBeanException((RuntimeException)t, "RuntimeException in MBean when setting attribute '" + attribute.getName() + "'");
/*     */       }
/* 217 */       if ((t instanceof Exception))
/*     */       {
/* 219 */         throw new MBeanException((Exception)t, "Exception in MBean when setting attribute '" + attribute.getName() + "'");
/*     */       }
View Full Code Here


/*     */     catch (InvocationTargetException e)
/*     */     {
/* 310 */       Throwable t = e.getTargetException();
/* 311 */       if ((t instanceof RuntimeException))
/*     */       {
/* 313 */         throw new RuntimeMBeanException((RuntimeException)t, "RuntimeException in MBean operation '" + opKeyString(actionName, signature) + "'");
/*     */       }
/* 315 */       if ((t instanceof Exception))
/*     */       {
/* 317 */         throw new MBeanException((Exception)t, "Exception in MBean operation '" + opKeyString(actionName, signature) + "'");
/*     */       }
View Full Code Here

/*     */     {
/* 176 */       t = ((InvocationTargetException)t).getTargetException();
/* 177 */       if ((t instanceof RuntimeOperationsException))
/* 178 */         throw ((RuntimeOperationsException)t);
/* 179 */       if ((t instanceof RuntimeException))
/* 180 */         throw new RuntimeMBeanException((RuntimeException)t);
/* 181 */       if ((t instanceof Error))
/* 182 */         throw new RuntimeErrorException((Error)t);
/* 183 */       if ((t instanceof Exception)) {
/* 184 */         throw new MBeanException((Exception)t);
/*     */       }
View Full Code Here

/*  425 */           throw ((InstanceNotFoundException)t);
/*  426 */         if ((t instanceof MBeanRegistrationException))
/*  427 */           throw ((MBeanRegistrationException)t);
/*      */       }
/*  429 */       if ((result instanceof RuntimeException))
/*  430 */         throw new RuntimeMBeanException((RuntimeException)result);
/*  431 */       if ((result instanceof Error)) {
/*  432 */         throw new RuntimeErrorException((Error)result);
/*      */       }
/*      */
/*  435 */       throw new MBeanRegistrationException(new InvocationTargetException(t), "Cannot unregister MBean");
View Full Code Here

/* 1281 */     if ((t instanceof InvocationTargetException))
/*      */     {
/* 1283 */       Throwable root = ((InvocationTargetException)t).getTargetException();
/*      */
/* 1285 */       if ((root instanceof RuntimeException))
/* 1286 */         throw new RuntimeMBeanException((RuntimeException)root, className + " constructor has thrown an exception: " + root.toString());
/* 1287 */       if ((root instanceof Error))
/* 1288 */         throw new RuntimeErrorException((Error)root, className + " constructor has thrown an error: " + root.toString());
/* 1289 */       if ((root instanceof Exception)) {
/* 1290 */         throw new MBeanException((Exception)root, className + " constructor has thrown an exception: " + root.toString());
/*      */       }
/* 1292 */       throw new Error("Something went wrong with handling the exception from " + className + " default constructor.");
/*      */     }
/*      */
/* 1295 */     if ((t instanceof ExceptionInInitializerError))
/*      */     {
/* 1297 */       Throwable root = ((ExceptionInInitializerError)t).getException();
/*      */
/* 1300 */       if ((root instanceof RuntimeException)) {
/* 1301 */         throw new RuntimeMBeanException((RuntimeException)root, "Exception in class " + className + " static initializer: " + root.toString());
/*      */       }
/*      */
/* 1304 */       throw new Error("ERROR: it turns out the root cause is not always a runtime exception!");
/*      */     }
/*      */
View Full Code Here

/* 1461 */           throw ((MBeanRegistrationException)t);
/* 1462 */         if ((t instanceof NotCompliantMBeanException))
/* 1463 */           throw ((NotCompliantMBeanException)t);
/*      */       }
/* 1465 */       if ((result instanceof RuntimeException))
/* 1466 */         throw new RuntimeMBeanException((RuntimeException)result);
/* 1467 */       if ((result instanceof Error)) {
/* 1468 */         throw new RuntimeErrorException((Error)result);
/*      */       }
/*      */     }
/* 1471 */     throw new MBeanRegistrationException(new InvocationTargetException(t), "Cannot register MBean");
View Full Code Here

TOP

Related Classes of javax.management.RuntimeMBeanException

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.