Class DefaultExceptionResolver
- java.lang.Object
-
- org.alfresco.rest.framework.core.exceptions.DefaultExceptionResolver
-
- All Implemented Interfaces:
ExceptionResolver<Exception>
public class DefaultExceptionResolver extends Object implements ExceptionResolver<Exception>
Default exception resolver for cases when no other exception resolver will do.- Author:
- Gethin James
-
-
Field Summary
Fields Modifier and Type Field Description static String
DEFAULT_MESSAGE_ID
static String
ERROR_URL
static String
STACK_MESSAGE_ID
-
Constructor Summary
Constructors Constructor Description DefaultExceptionResolver()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ErrorResponse
resolveException(Exception ex)
-
-
-
Field Detail
-
STACK_MESSAGE_ID
public static final String STACK_MESSAGE_ID
- See Also:
- Constant Field Values
-
ERROR_URL
public static final String ERROR_URL
- See Also:
- Constant Field Values
-
DEFAULT_MESSAGE_ID
public static final String DEFAULT_MESSAGE_ID
- See Also:
- Constant Field Values
-
-
Method Detail
-
resolveException
public ErrorResponse resolveException(Exception ex)
- Specified by:
resolveException
in interfaceExceptionResolver<Exception>
-
-