Package nexj.core.util

Examples of nexj.core.util.UncheckedException


         return str.equals(sRef);
      }
      catch (IOException e)
      {
         throw new UncheckedException("err.test.io", e);
      }
      finally
      {
         IOUtil.close(reader);
View Full Code Here


                  if (e instanceof RuntimeException)
                  {
                     throw (RuntimeException)e;
                  }

                  throw new UncheckedException("err.runtime.seed", new Object[]{sName}, e);
               }
            }
         });

         // Commit the deletes
View Full Code Here

      {
         createMarshaller(context).serialize(tobj, writer);
      }
      catch (IOException e)
      {
         throw new UncheckedException("err.rpc.valueSerialization", e);
      }
   }
View Full Code Here

         serializeValues(writer, context);
         writer.flush();
      }
      catch (IOException e)
      {
         throw new UncheckedException("err.rpc.valueSerialization", e);
      }
     
      return new Binary(bos.toByteArray());
   }
View Full Code Here

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

         m_map = new PropertyHashTab(tobj.getValueCount());

         InstanceFactory factory = null;
View Full Code Here

               ((Initializable)instance).initialize();
            }
         }
         catch (Exception e)
         {
            throw new UncheckedException("err.runtime.class", new Object[]{clazz.getName()}, e);
         }

         m_cacheMap.put(clazz, instance);
      }
View Full Code Here

         {
            instance = clazz.newInstance();
         }
         catch (Exception e)
         {
            throw new UncheckedException("err.runtime.class", new Object[]
            {
               clazz.getName()
            }, e);
         }
View Full Code Here

            Pair.binary(Symbol.EQ, Symbol.NAME, sName),
            null, -1, 0, true, Query.SEC_NONE, m_context).read();

         if (list.isEmpty())
         {
            throw new UncheckedException("err.runtime.unknownCounter", new Object[]{sName});
         }

         long lValue;

         m_bBusy = true;
View Full Code Here

         {
            Heap nodeHeap = getHeap(sNodeName);

            if (nodeHeap == null)
            {
               throw new UncheckedException("err.queueing.unknownNode", new Object[]
               {
                  sNodeName
               });
            }
            else
            {
               nodeHeap.add(delivery);
            }

            break;
         }
         case ObjectDispatchListener.ALL:
         case ObjectDispatchListener.EXCEPT:
            for (Lookup.Iterator iter = m_deliverableHeapMap.iterator(); iter.hasNext();)
            {
               String sCurrNode = (String)iter.next();

               if (nDistribution == ObjectDispatchListener.ALL || !sCurrNode.equals(sNodeName))
               {
                  ((Heap)iter.getValue()).add(delivery);
               }
            }

            break;
         default:
            throw new UncheckedException("err.queueing.invalidDistribution", new Object[]
            {
               Primitive.createInteger(nDistribution)
            });
      }
   }
View Full Code Here

            execute((TransferObject)args[0]);

            return null;

         default:
            throw new UncheckedException("err.queueing.invalidMethod", new Object[]
            {
               Primitive.createInteger(nMessageType)
            });
      }
   }
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.