Class DataExchangeError
java.lang.Object
com.broadleafcommerce.dataexchange.domain.exception.DataExchangeError
- All Implemented Interfaces:
 Serializable
Container to provide granular details about individual errors that may have occurred during the
 processing of a batch.
- Author:
 - Kelly Tisdell
 - See Also:
 
- 
Constructor Summary
Constructors - 
Method Summary
Modifier and TypeMethodDescriptionprotected booleanbooleangetError()Message indicating details about the exception or error.The request/response headers if this error was generated from a service-to-service call.The HTTP method type (PUT/PATCH/POST/DELETE) if available.intHTTP status code associated with this error (typically received from another service-to-service call).The original error.getPath()JSON path to the entity associated with this error.The stack trace associated with the error.getType()Indicates the type of the error.The URL path associated with the error if available.inthashCode()voidMessage indicating details about the exception or error.voidThe request/response headers if this error was generated from a service-to-service call.voidsetHttpMethod(String httpMethod) The HTTP method type (PUT/PATCH/POST/DELETE) if available.voidsetHttpStatus(int httpStatus) HTTP status code associated with this error (typically received from another service-to-service call).voidsetOriginalError(Throwable originalError) The original error.voidJSON path to the entity associated with this error.voidsetStackTrace(String stackTrace) The stack trace associated with the error.voidIndicates the type of the error.voidsetUrlPath(String urlPath) The URL path associated with the error if available.toString() 
- 
Constructor Details
- 
DataExchangeError
public DataExchangeError() 
 - 
 - 
Method Details
- 
getHttpStatus
public int getHttpStatus()HTTP status code associated with this error (typically received from another service-to-service call). - 
getError
Message indicating details about the exception or error. This is typically a string or map, but may be any JSON serializable object. - 
getType
Indicates the type of the error. May be used to categorize the error for easier handling by the client. - 
getPath
JSON path to the entity associated with this error. - 
getUrlPath
The URL path associated with the error if available. (e.g. "/products", "/variants", etc.) - 
getHttpMethod
The HTTP method type (PUT/PATCH/POST/DELETE) if available. - 
getStackTrace
The stack trace associated with the error. This is not typically returned to the client, but may be enabled for debugging purposes. SeeDataExchangeErrorProperties. - 
getHeaders
The request/response headers if this error was generated from a service-to-service call. This is not enabled by default and must be enabled via property. See:DataExchangeErrorProperties.setReturnRequestHeaders(boolean)DataExchangeErrorProperties.setReturnResponseHeaders(boolean)WebClientHttpRequestAwareErrorResolver - 
getOriginalError
The original error. - 
setHttpStatus
public void setHttpStatus(int httpStatus) HTTP status code associated with this error (typically received from another service-to-service call). - 
setError
Message indicating details about the exception or error. This is typically a string or map, but may be any JSON serializable object. - 
setType
Indicates the type of the error. May be used to categorize the error for easier handling by the client. - 
setPath
JSON path to the entity associated with this error. - 
setUrlPath
The URL path associated with the error if available. (e.g. "/products", "/variants", etc.) - 
setHttpMethod
The HTTP method type (PUT/PATCH/POST/DELETE) if available. - 
setStackTrace
The stack trace associated with the error. This is not typically returned to the client, but may be enabled for debugging purposes. SeeDataExchangeErrorProperties. - 
setHeaders
The request/response headers if this error was generated from a service-to-service call. This is not enabled by default and must be enabled via property. See:DataExchangeErrorProperties.setReturnRequestHeaders(boolean)DataExchangeErrorProperties.setReturnResponseHeaders(boolean)WebClientHttpRequestAwareErrorResolver - 
setOriginalError
The original error. - 
equals
 - 
canEqual
 - 
hashCode
public int hashCode() - 
toString
 
 -