public class CustomParameterizedException extends RuntimeException
throw new CustomParameterizedException("myCustomError", "hello", "world");
Can be translated with:
"error.myCustomError" : "The server says {{params[0]}} to {{params[1]}}"
| Constructor and Description |
|---|
CustomParameterizedException(String message,
String... params) |
| Modifier and Type | Method and Description |
|---|---|
ParameterizedErrorVM |
getErrorVM() |
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toStringpublic ParameterizedErrorVM getErrorVM()
Copyright © 2017 Power TAC. All rights reserved.