Class ErrorApiResponse<Error>
- java.lang.Object
-
- io.foodtechlab.exceptionhandler.core.ErrorApiResponse<Error>
-
public class ErrorApiResponse<Error> extends Object
-
-
Constructor Summary
Constructors Constructor Description ErrorApiResponse(List<Error> errors, int status)ErrorApiResponse(List<Error> errors, int status, String path, String traceId)
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static <Error> ErrorApiResponse<Error>badRequest(List<Error> errors, String path, String traceId)static <Error> ErrorApiResponse<Error>forbidden(List<Error> errors, String path, String traceId)static <Error> ErrorApiResponse<Error>internalServerError(List<Error> errors, String path, String traceId)static <Error> ErrorApiResponse<Error>notFound(List<Error> errors, String path, String traceId)static <Error> ErrorApiResponse<Error>of(List<Error> errors, int status, String path, String traceId)static <Error> ErrorApiResponse<Error>tooManyRequest(List<Error> errors, String path, String traceId)static <Error> ErrorApiResponse<Error>unauthorized(List<Error> errors, String path, String traceId)
-
-
-
Method Detail
-
of
public static <Error> ErrorApiResponse<Error> of(List<Error> errors, int status, String path, String traceId)
-
badRequest
public static <Error> ErrorApiResponse<Error> badRequest(List<Error> errors, String path, String traceId)
-
unauthorized
public static <Error> ErrorApiResponse<Error> unauthorized(List<Error> errors, String path, String traceId)
-
tooManyRequest
public static <Error> ErrorApiResponse<Error> tooManyRequest(List<Error> errors, String path, String traceId)
-
forbidden
public static <Error> ErrorApiResponse<Error> forbidden(List<Error> errors, String path, String traceId)
-
notFound
public static <Error> ErrorApiResponse<Error> notFound(List<Error> errors, String path, String traceId)
-
internalServerError
public static <Error> ErrorApiResponse<Error> internalServerError(List<Error> errors, String path, String traceId)
-
-