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
-
-
Constructor Summary
Constructors Constructor Description CustomParameterizedException(String message, String... params)
CustomParameterizedException(String message, Map<String,Object> paramMap)
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static Map<String,Object>
toParamMap(String... params)
static Map<String,Object>
toProblemParameters(String message, Map<String,Object> paramMap)
-
Methods inherited from class org.zalando.problem.AbstractThrowableProblem
getDetail, getInstance, getParameters, getStatus, getTitle, getType
-
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getLocalizedMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace
-
-