public class ExceptionConverter extends Object
Modifier and Type | Field and Description |
---|---|
protected static Map<Class<? extends LangridException>,LangridError> |
errors |
Constructor and Description |
---|
ExceptionConverter() |
Modifier and Type | Method and Description |
---|---|
static void |
addErrorMapping(Class<? extends LangridException> clazz,
LangridError error) |
static LangridException |
convert(InvocationTargetException exception,
URL serviceUrl,
String operationName,
Object... parameters) |
static LangridException |
convertToE000(String message,
URL serviceUrl,
String operationName,
Object... parameters) |
static LangridException |
convertToE000(Throwable exception,
URL serviceUrl,
String operationName,
Object... parameters) |
protected static Map<Class<? extends LangridException>,LangridError> errors
public static LangridException convert(InvocationTargetException exception, URL serviceUrl, String operationName, Object... parameters)
public static LangridException convertToE000(Throwable exception, URL serviceUrl, String operationName, Object... parameters)
public static LangridException convertToE000(String message, URL serviceUrl, String operationName, Object... parameters)
public static void addErrorMapping(Class<? extends LangridException> clazz, LangridError error)