Package nexj.core.meta

Examples of nexj.core.meta.MetadataValidationException


         compile(machine);
      }
      catch (CompilerException e)
      {
         MetadataValidationException x = new MetadataValidationException(e);
         String sFullName = getFullName();

         x.setTypeName(getTypeName());
         x.setProperty(getPropName(), sFullName);

         String sURL = ((CompilerException)e).getURL();

         if (sURL != null && sURL.startsWith(getURLPrefix()))
         {
            x.setProperty("step", sURL.substring(getURLPrefix().length() + sFullName.length() + 1));
         }

         throw x;
      }
      finally
View Full Code Here


         return new Compiler().compile(code, m_posMap, machine, false);
      }
      catch (CompilerException e)
      {
         MetadataValidationException x = new MetadataValidationException(e);

         setProperties(x);

         String sURL = e.getURL();

         if (sURL != null)
         {
            int i = URL_PREFIX.length() + m_sName.length() + 1;
            int k = sURL.indexOf('.', i);

            if (k >= 0)
            {
               int m = sURL.indexOf('.', k + 1);

               if (m >= 0)
               {
                  x.setProperty("argument", sURL.substring(m + 1));
               }
               else
               {
                  m = sURL.length();
               }

               x.setProperty("mapping", sURL.substring(k + 1, m));
            }
            else
            {
               x.setProperty("script", sURL.substring(i));
            }
         }

         throw x;
      }
View Full Code Here

      {
         m_function = new Compiler().compile(code, m_posMap, m_urlMap, machine, false);
      }
      catch (CompilerException e)
      {
         MetadataValidationException x = new MetadataValidationException(e);

         setProperties(x);

         String sURL = ((CompilerException)e).getURL();

         if (sURL != null)
         {
            x.setProperty("argument", sURL.substring(URL_PREFIX.length() +
               m_channel.getName().length() + m_service.getFullName().length() + 2));
         }

         throw x;
      }
View Full Code Here

TOP

Related Classes of nexj.core.meta.MetadataValidationException

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.