Package org.onlab.rest.exceptions
Various exception mappers to map errors to proper response status codes.
-
Class Summary Class Description AbstractMapper<E extends java.lang.Throwable> Base exception mapper implementation.BadRequestMapper Mapper for IO exceptions to the BAD_REQUEST response code.EntityNotFoundMapper Mapper for service not found exceptions to the NOT_FOUND response code.ForbiddenMapper Mapper for service not found exceptions to the NOT_FOUND response code.IllegalArgumentExceptionMapper Mapper for illegal argument exceptions to the BAD_REQUEST response code.IllegalStateExceptionMapper Mapper for illegal state exceptions to the BAD_REQUEST response code.NotFoundMapper Mapper for api not found exceptions to the NOT_FOUND response code.ServerErrorMapper Mapper for service not found exceptions to the INTERNAL_SERVER_ERROR response code.ServiceNotFoundMapper Mapper for service not found exceptions to the SERVICE_UNAVAILABLE response code.WebApplicationExceptionMapper Exception mapper for WebApplicationExceptions.