Package nexj.core.util

Examples of nexj.core.util.UncheckedException


      run(new ContextRunnable()
      {
         public void err(Throwable t, InvocationContext context) throws Throwable
         {
            throw new UncheckedException("err.queueing.startup", t);
         }

         public String getClientAddress() throws Throwable
         {
            return "dispatcher";
View Full Code Here


         {
            Instance msg = readMessage(oid, Pair.append(RECEIVE_ATTRIBUTES, m_messageLoadAttributes), context);

            if (msg == null)
            {
               throw new UncheckedException("err.queueing.receive", new Object[]
               {
                  oid
               });
            }
View Full Code Here

         }
         catch (MetadataCompoundValidationException e)
         {
            for (Iterator xitr = e.getExceptionIterator(); xitr.hasNext();)
            {
               UncheckedException ux = (UncheckedException)xitr.next();
               MetadataValidationException x;

               if (ux instanceof MetadataValidationException)
               {
                  x = (MetadataValidationException)ux;
View Full Code Here

      {
         new TextMarshaller(context).serialize(tobj, writer);
      }
      catch (IOException e)
      {
         throw new UncheckedException("err.rpc.valueSerialization", e);
      }

      return true;
   }
View Full Code Here

         writer.flush();
      }
      catch (IOException e)
      {
         throw new UncheckedException("err.rpc.valueSerialization", e);
      }

      return new Binary(bos.toByteArray());
   }
View Full Code Here

            tobj = (TransferObject)new TextUnmarshaller(context).deserialize(reader);
         }
         catch (IOException e)
         {
            throw new UncheckedException("err.rpc.valueDeserialization", e);
         }
      }

      TransferObject instances = (TransferObject)tobj.findValue(":instances");
      InstanceFactory factory = null;
View Full Code Here

      {
         return new URL(getClass().getResource("data/"), sFileName);
      }
      catch (MalformedURLException e)
      {
         throw new UncheckedException("err.test.url", new Object[]{sFileName}, e);
      }
   }
View Full Code Here

         con = m_adapter.getConnectionFactory().getConnection(null);
         SQLUtil.execute(con, getSQLScript(sName));
      }
      catch (Throwable t)
      {
         throw new UncheckedException("err.test.sql", new Object[]{sName}, t);
      }
      finally
      {
         if (con != null)
         {
View Full Code Here

TOP

Related Classes of nexj.core.util.UncheckedException

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.