Uses of Class
com.broadleafcommerce.common.error.ApiError
Packages that use ApiError
Package
Description
-
Uses of ApiError in com.broadleafcommerce.common.error
Methods in com.broadleafcommerce.common.error that return ApiErrorModifier and TypeMethodDescriptionApiError.withException
(String exception) Optional exception class nameApiError.withGlobalErrors
(List<GlobalError> globalErrors) Optionally gives additional information to the client about what was wrong with their requestApiError.withStatus
(org.springframework.http.HttpStatusCode status) Should always match exactly the status in the response header.ApiError.withStatusCode
(int statusCode) Numerical representation ofstatus
ApiError.withTimestamp
(OffsetDateTime timestamp) When the error occurred, defaults toLocalDateTime.now()
A human-readable representation of the type of error being returnedA machine-readable representation of the type of error being returnedMethods in com.broadleafcommerce.common.error that return types with arguments of type ApiErrorModifier and TypeMethodDescriptionorg.springframework.http.ResponseEntity<ApiError>
ApiError.toResponseEntity()
-
Uses of ApiError in com.broadleafcommerce.common.error.validation
Subclasses of ApiError in com.broadleafcommerce.common.error.validation -
Uses of ApiError in com.broadleafcommerce.common.error.validation.web
Methods in com.broadleafcommerce.common.error.validation.web that return types with arguments of type ApiErrorModifier and TypeMethodDescriptionorg.springframework.http.ResponseEntity<ApiError>
IllegalArgumentExceptionAdvisor.handleIllegalArgumentException
(IllegalArgumentException ex, org.springframework.web.context.request.WebRequest request) Handles uncaught illegal argument exceptions by logging them and returning anApiError
with 400 status.org.springframework.http.ResponseEntity<ApiError>
RuntimeExceptionAdvisor.handleRuntimeException
(RuntimeException ex, org.springframework.web.context.request.WebRequest request) Handles uncaught runtime exceptions by logging them and returning anApiError
.