org.apache.velocity.runtime.RuntimeSingleton.error()方法的使用及代码示例

x33g5p2x  于2022-01-29 转载在 其他  
字(2.4k)|赞(0)|评价(0)|浏览(72)

本文整理了Java中org.apache.velocity.runtime.RuntimeSingleton.error方法的一些代码示例,展示了RuntimeSingleton.error的具体用法。这些代码示例主要来源于Github/Stackoverflow/Maven等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。RuntimeSingleton.error方法的具体详情如下:
包路径:org.apache.velocity.runtime.RuntimeSingleton
类名称:RuntimeSingleton
方法名:error

RuntimeSingleton.error介绍

暂无

代码示例

代码示例来源:origin: velocity/velocity-dep

/**
 * Log an error message.
 *
 * @param Object message to log
 */
public static void error(Object message)
{
  RuntimeSingleton.error( message );
}

代码示例来源:origin: velocity/velocity-dep

/**
 * Log an error message.
 *
 * @param Object message to log
 */
public static void error(Object message)
{
  RuntimeSingleton.error( message );
}

代码示例来源:origin: org.apache.velocity/com.springsource.org.apache.velocity

/**
 * Log an error message.
 *
 * @param message message to log
 */
public static void error(Object message)
{
  RuntimeSingleton.error( message );
}

代码示例来源:origin: org.apache.servicemix.bundles/org.apache.servicemix.bundles.velocity

/**
 * Log an error message.
 *
 * @param message message to log
 */
public static void error(Object message)
{
  RuntimeSingleton.error( message );
}

代码示例来源:origin: velocity/velocity-dep

/**
 *  merges a template and puts the rendered stream into the writer
 *
 *  @param templateName name of template to be used in merge
 *  @param encoding encoding used in template
 *  @param context  filled context to be used in merge
 *  @param  writer  writer to write template into
 *
 *  @return true if successful, false otherwise.  Errors
 *           logged to velocity log
 *
 *  @since Velocity v1.1
 */
public static boolean mergeTemplate( String templateName, String encoding,
                 Context context, Writer writer )
  throws ResourceNotFoundException, ParseErrorException, MethodInvocationException, Exception
{
  Template template = RuntimeSingleton.getTemplate(templateName, encoding);
  if ( template == null )
  {
    RuntimeSingleton.error("Velocity.parseTemplate() failed loading template '"
           + templateName + "'" );
    return false;
  }
  else
  {
    template.merge(context, writer);
    return true;
   }
}

代码示例来源:origin: velocity/velocity-dep

|| writer == null || logTag == null)
RuntimeSingleton.error( "Velocity.invokeVelocimacro() : invalid parameter");
return false;
RuntimeSingleton.error( "Velocity.invokeVelocimacro() : VM '"+ vmName
        + "' not registered.");
return false;
RuntimeSingleton.error( "Velocity.invokeVelocimacro() : error " + e );

代码示例来源:origin: velocity/velocity-dep

RuntimeSingleton.error( "Test- exception : " + e);
e.printStackTrace();

代码示例来源:origin: velocity/velocity-dep

RuntimeSingleton.error("Velocity.evaluate() : init exception for tag = "
       + logTag + " : " + e );

相关文章