Package com.github.jknack.mwa.mvc

Examples of com.github.jknack.mwa.mvc.ErrorPageExceptionResolver


   */
  @Bean
  public ErrorPageExceptionResolver errorPageExceptionResolver() {
    // Any exception (except TodoNotFound) will be rendered throw: error.html
    // TodoNotFound has a custom error page: 404.html
    return new ErrorPageExceptionResolver()
        .map(HttpStatus.NOT_FOUND, "404", TodoNotFoundException.class);
  }
View Full Code Here

TOP

Related Classes of com.github.jknack.mwa.mvc.ErrorPageExceptionResolver

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.