本文整理汇总了Java中net.sourceforge.stripes.exception.ExceptionHandler类的典型用法代码示例。如果您正苦于以下问题:Java ExceptionHandler类的具体用法?Java ExceptionHandler怎么用?Java ExceptionHandler使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
ExceptionHandler类属于net.sourceforge.stripes.exception包,在下文中一共展示了ExceptionHandler类的4个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: initExceptionHandler
import net.sourceforge.stripes.exception.ExceptionHandler; //导入依赖的package包/类
/** Looks for a class name in config and uses that to create the component. */
@Override protected ExceptionHandler initExceptionHandler() {
return initializeComponent(ExceptionHandler.class, EXCEPTION_HANDLER);
}
示例2: initExceptionHandler
import net.sourceforge.stripes.exception.ExceptionHandler; //导入依赖的package包/类
/** Allows subclasses to initialize a non-default ExceptionHandler instance to be used. */
protected ExceptionHandler initExceptionHandler() { return null; }
示例3: getExceptionHandler
import net.sourceforge.stripes.exception.ExceptionHandler; //导入依赖的package包/类
/**
* Returns an instance of ExceptionHandler that can be used by Stripes to handle any
* exceptions that arise as the result of processing a request.
*
* @return ExceptionHandler an instance of ExceptionHandler
*/
ExceptionHandler getExceptionHandler();
示例4: getExceptionHandler
import net.sourceforge.stripes.exception.ExceptionHandler; //导入依赖的package包/类
/**
* Returns an instance of an ExceptionHandler. Unless a subclass has picked another
* implementation, will return an instance of
* {@link net.sourceforge.stripes.exception.DefaultExceptionHandler}.
*/
public ExceptionHandler getExceptionHandler() { return this.exceptionHandler; }