Package java.lang.reflect

Examples of java.lang.reflect.UndeclaredThrowableException


               {
                  if (problem instanceof Exception)
                     throw (Exception) problem;
                  if (problem instanceof Error)
                     throw (Error) problem;
                  throw new UndeclaredThrowableException(problem);
               }
               if (expected != null)
               {
                  AbstractSystemTest.checkThrowableDeep(expected, problem);
                  if (ServiceContext.FAILED != ctx.state)
View Full Code Here


        F instance;
        try {
            instance = (F) cf.defineClass().newInstance();
        } catch (IllegalAccessException e) {
            throw new UndeclaredThrowableException(e);
        } catch (InstantiationException e) {
            throw new UndeclaredThrowableException(e);
        }

        innerCache.put(objectType, instance);

        return instance;
View Full Code Here

          } catch (JAXBException je) {
            log.error("Could not unmarshall detail to a DispositionReport");
          }
        }
      } else if (e instanceof UndeclaredThrowableException) {
        UndeclaredThrowableException ute =(UndeclaredThrowableException) e;
        if (ute.getUndeclaredThrowable()!=null && ute.getUndeclaredThrowable().getCause()!=null
            && ute.getUndeclaredThrowable().getCause().getCause() instanceof DispositionReportFaultMessage) {
          DispositionReportFaultMessage faultMsg = (DispositionReportFaultMessage) ute.getUndeclaredThrowable().getCause().getCause();
          report = faultMsg.getFaultInfo();
        }
      } else {
        log.error("Unsupported Exception: " + e.getClass());
      }
View Full Code Here

            if (t instanceof IOException) {
                throw (IOException) t;
            }
           
            throw new UndeclaredThrowableException(t);
        }

        // Handling the response was successful. Ensure that the content has
        // been fully consumed.
        HttpEntity entity = response.getEntity();
View Full Code Here

      } else if (cause instanceof RuntimeException) {
        throw (RuntimeException) cause;
      } else if (cause instanceof InterruptedException) {
        throw (InterruptedException) cause;
      } else {
        throw new UndeclaredThrowableException(pae,"Unknown exception in doAs");
      }
    }
  }
View Full Code Here

            log.entering("JGDIJMXBase", "removeNotificationListener", new Object[]{listener, filter, handback});
        }
        try {
            getNB().removeNotificationListener(listener);
        } catch (JGDIException ex) {
            throw new UndeclaredThrowableException(ex);
        }
        log.exiting("JGDIJMXBase", "removeNotificationListener");
    }
View Full Code Here

        MBeanNotificationInfo[] ret = null;
        try {
            ret = getNB().getMBeanNotificationInfo();
        } catch (JGDIException ex) {
            log.throwing("JGDIJMXBase", "getNotificationInfo", ex);
            throw new UndeclaredThrowableException(ex);
        }
        log.exiting("JGDIJMXBase", "removeNotificationListener", ret);
        return ret;
    }
View Full Code Here

                ZERO_PARAMS);
            return invoke(target, m, ZERO_ARGS);
        }
        catch (SecurityException e)
        {
            throw new UndeclaredThrowableException(e);
        }
        catch (NoSuchMethodException e)
        {
            // fine no default
            return null;
View Full Code Here

            element.getMethod(m.getName(), m.getParameterTypes());
            return true;
        }
        catch (SecurityException e)
        {
            throw new UndeclaredThrowableException(e);
        }
        catch (NoSuchMethodException e)
        {
            return false;
        }
View Full Code Here

            // this should already have been tested
            throw new IllegalStateException(e);
        }
        catch (IllegalAccessException e)
        {
            throw new UndeclaredThrowableException(e);
        }
        catch (InvocationTargetException e)
        {
            throw new UndeclaredThrowableException(e.getCause());
        }
    }
View Full Code Here

TOP

Related Classes of java.lang.reflect.UndeclaredThrowableException

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.