Package org.onlab.rest.exceptions
Class IllegalStateExceptionMapper
- java.lang.Object
-
- org.onlab.rest.exceptions.AbstractMapper<java.lang.IllegalStateException>
-
- org.onlab.rest.exceptions.IllegalStateExceptionMapper
-
- All Implemented Interfaces:
javax.ws.rs.ext.ExceptionMapper<java.lang.IllegalStateException>
@Provider public class IllegalStateExceptionMapper extends AbstractMapper<java.lang.IllegalStateException>
Mapper for illegal state exceptions to the BAD_REQUEST response code.
-
-
Field Summary
-
Fields inherited from class org.onlab.rest.exceptions.AbstractMapper
error
-
-
Constructor Summary
Constructors Constructor Description IllegalStateExceptionMapper()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected javax.ws.rs.core.Response.Status
responseStatus()
Returns the response status to be given when the exception occurs.-
Methods inherited from class org.onlab.rest.exceptions.AbstractMapper
messageFrom, response, toResponse
-
-
-
-
Method Detail
-
responseStatus
protected javax.ws.rs.core.Response.Status responseStatus()
Description copied from class:AbstractMapper
Returns the response status to be given when the exception occurs.- Specified by:
responseStatus
in classAbstractMapper<java.lang.IllegalStateException>
- Returns:
- response status
-
-