Package org.jboss.util

Examples of org.jboss.util.NestedRuntimeException


         {
            throw e;
         }
         catch(Exception e)
         {
            throw new NestedRuntimeException("newChild failed for o=" +
               o +
               ", uri=" +
               namespaceURI +
               ", local="
               + localName + ", attrs=" + attrs, e
View Full Code Here


         {
            value = getter != null ? getter.invoke(o, null) : field.get(o);
         }
         catch(Exception e)
         {
            throw new NestedRuntimeException(
               "Failed to get field value " + (getter != null ? getter.getName() : field.getName()) + " on " + o, e
            );
         }
      }
      return value;
View Full Code Here

         {
            setter.invoke(parent, new Object[]{child});
         }
         catch(Exception e)
         {
            throw new NestedRuntimeException("Failed to set field value " +
               child +
               " with setter " +
               setter
               + " on " + parent + ": ", e
            );
         }
      }
      else if(field != null)
      {
         if(!field.isAccessible())
         {
            field.setAccessible(true);
         }

         try
         {
            field.set(parent, child);
         }
         catch(IllegalArgumentException e)
         {
            throw new NestedRuntimeException("Failed to set field value " +
               child +
               " with field " +
               field.getName() +
               " on " +
               parent +
               ": field type is " +
               field.getType() + ", value type is " + (child == null ? null : child.getClass()), e
            );
         }
         catch(IllegalAccessException e)
         {
            throw new NestedRuntimeException("Failed to set field value " +
               child +
               " with field " +
               field.getName()
               + " on " + parent + ": ", e
            );
View Full Code Here

         {
            throw e;
         }
         catch(Exception e)
         {
            throw new NestedRuntimeException("newChild failed for o=" +
               o +
               ", uri=" +
               namespaceURI +
               ", local="
               + localName + ", attrs=" + attrs, e
View Full Code Here

         {
            value = getter.invoke(o, null);
         }
         catch(Exception e)
         {
            throw new NestedRuntimeException("Failed to invoke " + getter + " on " + o, e);
         }
      }
      return value;
   }
View Full Code Here

         {
            setter.invoke(parent, new Object[]{child});
         }
         catch(Exception e)
         {
            throw new NestedRuntimeException("Failed to set attribute value " +
               child +
               " with setter " +
               setter
               + " on " + parent + ": ", e
            );
View Full Code Here

         workManager.startWork(this);
      }
      catch (WorkException e)
      {
         e.printStackTrace();
         taskRejected(new NestedRuntimeException(e));
         return;
      }
      try
      {
         work.run();
View Full Code Here

         setLocale(Locale.US);
         return dateFormat.parse(date);
      }
      catch (Exception e)
      {
         throw new NestedRuntimeException(e);
      }
      finally
      {
         setLocale(locale);  
      }
View Full Code Here

      {
         return Strings.toURI(getAsText());
      }
      catch (URISyntaxException e)
      {
         throw new NestedRuntimeException(e);
      }
   }
View Full Code Here

            // remember the last seen exception
            pe = e;
         }
      }
      // couldn't parse
      throw new NestedRuntimeException(pe);
   }
View Full Code Here

TOP

Related Classes of org.jboss.util.NestedRuntimeException

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.