Interface JsonErrorResponseBodyProvider<T>
- Type Parameters:
T
- The error type
- All Superinterfaces:
ErrorResponseBodyProvider<T>
- Functional Interface:
- This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.
@FunctionalInterface
public interface JsonErrorResponseBodyProvider<T>
extends ErrorResponseBodyProvider<T>
A
ErrorResponseBodyProvider
for JSON responses.
Responses with content type MediaType.APPLICATION_JSON
.- Since:
- 4.7.0
- Author:
- Sergio del Amo
-
Method Summary
Methods inherited from interface io.micronaut.http.server.exceptions.response.ErrorResponseBodyProvider
body
-
Method Details
-
contentType
- Specified by:
contentType
in interfaceErrorResponseBodyProvider<T>
- Returns:
- The content type of the HTTP response
-