Class SimpleMappingExceptionResolver
- java.lang.Object
-
- org.alfresco.rest.framework.core.exceptions.SimpleMappingExceptionResolver
-
- All Implemented Interfaces:
ExceptionResolver<java.lang.Exception>
public class SimpleMappingExceptionResolver extends java.lang.Object implements ExceptionResolver<java.lang.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(java.lang.Exception ex)
void
setExceptionMappings(java.util.Map<java.lang.String,java.lang.Integer> exceptionMappings)
-
-
-
Method Detail
-
resolveException
public ErrorResponse resolveException(java.lang.Exception ex)
- Specified by:
resolveException
in interfaceExceptionResolver<java.lang.Exception>
-
setExceptionMappings
public void setExceptionMappings(java.util.Map<java.lang.String,java.lang.Integer> exceptionMappings)
-
-