public class ServletResourceUtils extends Object
Constructor and Description |
---|
ServletResourceUtils() |
Modifier and Type | Method and Description |
---|---|
static Map<String,String> |
jsonize(String msgFormat,
Object... args)
Converts String errorMsg into a Map so that it produces valid json on serialization into response.
|
static Map<String,String> |
sanitizeException(Throwable t)
Sanitize the exception as a map of "error" to information about the exception.
|
public static Map<String,String> sanitizeException(@Nullable Throwable t)
t
- The exception to sanitizeCopyright © 2011–2018. All rights reserved.