Class BatchResultErrorEntry
- All Implemented Interfaces:
Serializable
,Cloneable
This is used in the responses of batch API to give a detailed description of the result of an action on each entry in the request.
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionclone()
boolean
getCode()
An error code representing why the action failed on this entry.getId()
The id of an entry in a batch request.A message explaining why the action failed on this entry.Whether the error happened due to the sender's fault.int
hashCode()
Whether the error happened due to the sender's fault.void
An error code representing why the action failed on this entry.void
The id of an entry in a batch request.void
setMessage
(String message) A message explaining why the action failed on this entry.void
setSenderFault
(Boolean senderFault) Whether the error happened due to the sender's fault.toString()
Returns a string representation of this object; useful for testing and debugging.An error code representing why the action failed on this entry.The id of an entry in a batch request.withMessage
(String message) A message explaining why the action failed on this entry.withSenderFault
(Boolean senderFault) Whether the error happened due to the sender's fault.
-
Constructor Details
-
BatchResultErrorEntry
public BatchResultErrorEntry()
-
-
Method Details
-
setId
The id of an entry in a batch request.
- Parameters:
id
- The id of an entry in a batch request.
-
getId
The id of an entry in a batch request.
- Returns:
- The id of an entry in a batch request.
-
withId
The id of an entry in a batch request.
- Parameters:
id
- The id of an entry in a batch request.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
setSenderFault
Whether the error happened due to the sender's fault.
- Parameters:
senderFault
- Whether the error happened due to the sender's fault.
-
getSenderFault
Whether the error happened due to the sender's fault.
- Returns:
- Whether the error happened due to the sender's fault.
-
withSenderFault
Whether the error happened due to the sender's fault.
- Parameters:
senderFault
- Whether the error happened due to the sender's fault.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
isSenderFault
Whether the error happened due to the sender's fault.
- Returns:
- Whether the error happened due to the sender's fault.
-
setCode
An error code representing why the action failed on this entry.
- Parameters:
code
- An error code representing why the action failed on this entry.
-
getCode
An error code representing why the action failed on this entry.
- Returns:
- An error code representing why the action failed on this entry.
-
withCode
An error code representing why the action failed on this entry.
- Parameters:
code
- An error code representing why the action failed on this entry.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
setMessage
A message explaining why the action failed on this entry.
- Parameters:
message
- A message explaining why the action failed on this entry.
-
getMessage
A message explaining why the action failed on this entry.
- Returns:
- A message explaining why the action failed on this entry.
-
withMessage
A message explaining why the action failed on this entry.
- Parameters:
message
- A message explaining why the action failed on this entry.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
toString
Returns a string representation of this object; useful for testing and debugging. -
equals
-
hashCode
public int hashCode() -
clone
-