Class CustomParameterizedException
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
org.zalando.problem.ThrowableProblem
org.zalando.problem.AbstractThrowableProblem
org.powertac.visualizer.web.rest.errors.CustomParameterizedException
- All Implemented Interfaces:
Serializable,org.zalando.problem.Exceptional,org.zalando.problem.Problem
public class CustomParameterizedException
extends org.zalando.problem.AbstractThrowableProblem
Custom, parameterized exception, which can be translated on the client side.
For example:
throw new CustomParameterizedException("myCustomError", "hello", "world");
Can be translated with:
"error.myCustomError" : "The server says {{param0}} to {{param1}}"
- See Also:
- Serialized Form
-
Field Summary
-
Constructor Summary
Constructors Constructor Description CustomParameterizedException(String message, String... params)CustomParameterizedException(String message, Map<String,Object> paramMap) -
Method Summary
Methods inherited from class org.zalando.problem.AbstractThrowableProblem
getDetail, getInstance, getParameters, getStatus, getTitle, getTypeMethods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getLocalizedMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace