程序包 org.beetl.core

类 ConsoleErrorHandler

java.lang.Object
org.beetl.core.ConsoleErrorHandler
所有已实现的接口:
ErrorHandler
直接已知子类:
ReThrowConsoleErrorHandler

public class ConsoleErrorHandler extends Object implements ErrorHandler
向控制台输出错误,并不抛出异常
作者:
xiandafu
  • 构造器详细资料

    • ConsoleErrorHandler

      public ConsoleErrorHandler()
  • 方法详细资料

    • processException

      public void processException(BeetlException ex, GroupTemplate groupTemplate, Writer writer)
      从接口复制的说明: ErrorHandler
      处理错误,错误输出到os流
      指定者:
      processException 在接口中 ErrorHandler
      参数:
      ex - 异常信息
      writer - 异常信息通过 writer 输出
    • printCause

      protected void printCause(ErrorInfo error, Writer writer)
    • getResourceName

      protected Object getResourceName(Object resourceId)
    • println

      protected void println(Writer w, String msg)
    • print

      protected void print(Writer w, String msg)
    • printThrowable

      protected void printThrowable(Writer w, Throwable t)
    • getRange

      protected int[] getRange(int line)
    • getDateTime

      protected String getDateTime()