Package nexj.core.util

Examples of nexj.core.util.ErrorCode


    */
   protected String getMessage(Throwable t)
   {
      if (t instanceof ErrorCode)
      {
         ErrorCode ec = (ErrorCode)t;

         return m_context.formatString(ec.getErrorCode(), ec.getErrorArgs());
      }
      else
      {
         return ObjUtil.getMessage(t);
      }
View Full Code Here


      }
      catch (Exception e)
      {
         if (e instanceof ErrorCode)
         {
            ErrorCode ec = (ErrorCode)e;

            throw setURL(new CompilerException(ec.getErrorCode(), ec.getErrorArgs(), e, pos));
         }

         throw setURL(new CompilerException("err.compiler.macroExpansion",
            new Object[]{ObjUtil.getMessage(e)}, e, pos));
      }
View Full Code Here

    */
   public static String getMessage(Throwable t, Context context)
   {
      if (context != null && t instanceof ErrorCode)
      {
         ErrorCode ec = (ErrorCode)t;

         return context.formatString(ec.getErrorCode(), ec.getErrorArgs());
      }

      return ObjUtil.getMessage(t);
   }
View Full Code Here

TOP

Related Classes of nexj.core.util.ErrorCode

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.