Class BulkUpdateError
- java.lang.Object
-
- com.broadleafcommerce.bulk.domain.BulkUpdateError
-
- All Implemented Interfaces:
Serializable
public class BulkUpdateError extends Object implements Serializable
A rich object detailing a reason why aBulkUpdatefailed.- Author:
- Samarth Dhruva (samarthd)
- See Also:
BulkUpdate.errors, Serialized Form
-
-
Constructor Summary
Constructors Constructor Description BulkUpdateError()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected booleancanEqual(Object other)booleanequals(Object o)StringgetDescription()A message describing the error encountered.StringgetRecordId()IftypeisBulkUpdateErrorType.RECORD, this value should hold the ID of the record that experienced the error.StringgetRecordType()IftypeisBulkUpdateErrorType.RECORD, this value should hold the domain/type of the record that experienced the error.StringgetStackTrace()The string representation of the stacktrace.StringgetType()The type of error that was encountered.inthashCode()BulkUpdateErrorsetDescription(String description)A message describing the error encountered.BulkUpdateErrorsetRecordId(String recordId)IftypeisBulkUpdateErrorType.RECORD, this value should hold the ID of the record that experienced the error.BulkUpdateErrorsetRecordType(String recordType)IftypeisBulkUpdateErrorType.RECORD, this value should hold the domain/type of the record that experienced the error.BulkUpdateErrorsetStackTrace(String stackTrace)The string representation of the stacktrace.BulkUpdateErrorsetType(String type)The type of error that was encountered.StringtoString()
-
-
-
Method Detail
-
getType
public String getType()
The type of error that was encountered.- Returns:
- the type of error that was encountered
- See Also:
BulkUpdateErrorType
-
getRecordType
public String getRecordType()
IftypeisBulkUpdateErrorType.RECORD, this value should hold the domain/type of the record that experienced the error.- Returns:
- the domain/type of the specific record that encountered an error
-
getRecordId
public String getRecordId()
IftypeisBulkUpdateErrorType.RECORD, this value should hold the ID of the record that experienced the error.- Returns:
- the ID of the specific record that encountered an error
-
getDescription
public String getDescription()
A message describing the error encountered.- Returns:
- a message describing the error encountered
-
getStackTrace
public String getStackTrace()
The string representation of the stacktrace.- Returns:
- the string representation of the stacktrace
-
setType
public BulkUpdateError setType(String type)
The type of error that was encountered.- Parameters:
type- the type of error that was encountered- Returns:
this.- See Also:
BulkUpdateErrorType
-
setRecordType
public BulkUpdateError setRecordType(String recordType)
IftypeisBulkUpdateErrorType.RECORD, this value should hold the domain/type of the record that experienced the error.- Parameters:
recordType- the domain/type of the specific record that encountered an error- Returns:
this.
-
setRecordId
public BulkUpdateError setRecordId(String recordId)
IftypeisBulkUpdateErrorType.RECORD, this value should hold the ID of the record that experienced the error.- Parameters:
recordId- the ID of the specific record that encountered an error- Returns:
this.
-
setDescription
public BulkUpdateError setDescription(String description)
A message describing the error encountered.- Parameters:
description- a message describing the error encountered- Returns:
this.
-
setStackTrace
public BulkUpdateError setStackTrace(String stackTrace)
The string representation of the stacktrace.- Parameters:
stackTrace- the string representation of the stacktrace- Returns:
this.
-
canEqual
protected boolean canEqual(Object other)
-
-