Interface RestApiExceptionMapper

All Known Implementing Classes:
RestApiExceptionMapperForWeb

public interface RestApiExceptionMapper
Maps the error response into a RestApiException.
Author:
Christian Bremer
  • Method Summary

    Modifier and Type
    Method
    Description
    org.bremersee.exception.model.RestApiException
    build(Throwable exception, String requestPath, Object handler)
    Build the exception model from the exception, the requested path and a handler.
  • Method Details

    • build

      org.bremersee.exception.model.RestApiException build(Throwable exception, @Nullable String requestPath, @Nullable Object handler)
      Build the exception model from the exception, the requested path and a handler. Typically, the handler is of type HandlerMethod.
      Parameters:
      exception - the exception (required)
      requestPath - the requested path (optional)
      handler - the handler (optional)
      Returns:
      the rest api exception