Class JsonExceptionHandler.DefaultStatusResolver

java.lang.Object
sk.antons.sbutils.http.JsonExceptionHandler.DefaultStatusResolver
All Implemented Interfaces:
Function<Throwable,org.springframework.http.HttpStatus>
Enclosing class:
JsonExceptionHandler

public static class JsonExceptionHandler.DefaultStatusResolver extends Object implements Function<Throwable,org.springframework.http.HttpStatus>
Resolve http status from exception class. It is searching ResponseStatus annotation or static int httpCode() function. After status is resolved it is cached for given class. Allows also define status for custom exception classes.