Package org.jboss.util

Examples of org.jboss.util.UnexpectedThrowable


            uri = uri + "/" + name;
         return new URI(uri);
      }
      catch (URISyntaxException e)
      {
         throw new UnexpectedThrowable("Unexpected", e);
      }
   }
View Full Code Here


            if (original instanceof Exception)
               throw (Exception) original;
            else if (original instanceof Error)
               throw (Error) original;
            else
               throw new UnexpectedThrowable("UnexpectedThrowable", original);
         }
         staticLog.debug("Got expected " + wrapperExpected.getName() + "(" + original + ")");
      }
     
      while (throwable.getCause() != null)
         throwable = throwable.getCause();
     
      if (deepExpected.isInstance(throwable) == false)
      {
         if (original instanceof Exception)
            throw (Exception) original;
         else if (original instanceof Error)
            throw (Error) original;
         else
            throw new UnexpectedThrowable("UnexpectedThrowable", original);
      }
      else
      {
         staticLog.debug("Got expected " + deepExpected.getName() + "(" + throwable + ")");
      }
View Full Code Here

         if (original instanceof Exception)
            throw (Exception) original;
         else if (original instanceof Error)
            throw (Error) original;
         else
            throw new UnexpectedThrowable("UnexpectedThrowable", original);
      }
      else
      {
         staticLog.debug("Got expected " + expected.getName() + "(" + throwable + ")");
      }
View Full Code Here

      TxWorkManager.removeWork(work, tx);
    }
    catch (Exception ex)
    {
      throw new UnexpectedThrowable(ex);
    }
  }
View Full Code Here

      TxWorkManager.removeWork(work, tx);
    }
    catch (Exception ex)
    {
      throw new UnexpectedThrowable(ex);
    }
  }
View Full Code Here

      TxWorkManager.removeWork(work, tx);
    }
    catch (Exception ex)
    {
      throw new UnexpectedThrowable(ex);
    }
  }
View Full Code Here

      TxWorkManager.removeWork(work, tx);
    }
    catch (Exception ex)
    {
      throw new UnexpectedThrowable(ex);
    }
  }
View Full Code Here

         {
            compositeType = new CompositeType(typeName, typeName, itemNames, itemNames, itemTypes);
         }
         catch (Throwable t)
         {
            throw new UnexpectedThrowable("Error creating composite type for: " + typeName, t);
         }
      }
      return compositeType;
   }
View Full Code Here

      {
         return new CompositeType(name, name, itemNames, itemNames, openTypes);
      }
      catch (Exception e)
      {
         throw new UnexpectedThrowable(e);
      }
   }
View Full Code Here

         if (throwable instanceof Exception)
            throw (Exception) throwable;
         else if (throwable instanceof Error)
            throw (Error) throwable;
         else
            throw new UnexpectedThrowable("UnexpectedThrowable", throwable);
      }
      else
      {
         staticLog.debug("Got expected " + expected.getName() + "(" + throwable + ")");
      }
View Full Code Here

TOP

Related Classes of org.jboss.util.UnexpectedThrowable

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.