public class NoPreviewAvailableExceptionMapper extends Object implements ExceptionMapper<NoPreviewAvailableException>
NoPreviewAvailableException
AUTHENTICATION_ERROR, AUTHORIZATION_ERROR, BAD_REQUEST, FORBIDDEN, ILLEGAL_PARAMETERS_ERROR, INTERNAL_ERROR, NOT_ACCEPTABLE, NOT_FOUND, OKAY, UNKNOWN_ERROR, VALIDATION_ERROR, WARNING
Constructor and Description |
---|
NoPreviewAvailableExceptionMapper() |
Modifier and Type | Method and Description |
---|---|
Class<NoPreviewAvailableException> |
getExceptionClass() |
Status |
mapException(NoPreviewAvailableException exception)
Maps the given exception to a status.
|
public Class<NoPreviewAvailableException> getExceptionClass()
getExceptionClass
in interface ExceptionMapper<NoPreviewAvailableException>
public Status mapException(NoPreviewAvailableException exception)
mapException
in interface ExceptionMapper<NoPreviewAvailableException>
exception
- The exception to map.Copyright © 2019 Communote team. All rights reserved.