public class CustomErrorPages extends Object
| Modifier and Type | Field and Description |
|---|---|
static String |
INTERNAL_ERROR |
static String |
NOT_FOUND |
| Modifier and Type | Method and Description |
|---|---|
static boolean |
existsFor(int status)
Verifies that a custom error page exists for the given status code
|
String |
getDefaultFor(int status)
Returns the default error page for a given status code.
|
static Object |
getFor(int status,
Request request,
Response response)
Gets the custom error page for a given status code.
|
public static final String NOT_FOUND
public static final String INTERNAL_ERROR
public static boolean existsFor(int status)
status - public static Object getFor(int status, Request request, Response response)
status - request - response - public String getDefaultFor(int status)
status - Copyright © 2019. All rights reserved.