本文整理匯總了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; }