Class SimpleMappingExceptionResolver
- java.lang.Object
-
- org.alfresco.rest.framework.core.exceptions.SimpleMappingExceptionResolver
-
- All Implemented Interfaces:
ExceptionResolver<Exception>
public class SimpleMappingExceptionResolver extends Object implements ExceptionResolver<Exception>
Exception Resolver that uses a simple Map to resolve the Status codes and error responses for exceptions- Author:
- Gethin James
-
-
Constructor Summary
Constructors Constructor Description SimpleMappingExceptionResolver()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ErrorResponse
resolveException(Exception ex)
void
setExceptionMappings(Map<String,Integer> exceptionMappings)
-
-
-
Method Detail
-
resolveException
public ErrorResponse resolveException(Exception ex)
- Specified by:
resolveException
in interfaceExceptionResolver<Exception>
-
-