Package com.whatsapp.api.domain.errors
Record Class Error
java.lang.Object
java.lang.Record
com.whatsapp.api.domain.errors.Error
public record Error(Integer code, String details, Integer errorSubcode, String fbtraceId, String message, String messagingProduct, ErrorData errorData, String type, Boolean isTransient, String errorUserSubtitle, String errorUserMsg)
extends Record
An object representing errors from the whatsapp api
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncode()Returns the value of thecoderecord component.details()Returns the value of thedetailsrecord component.final booleanIndicates whether some other object is "equal to" this one.Returns the value of theerrorDatarecord component.Deprecated, for removal: This API element is subject to removal in a future version.Returns the value of theerrorUserMsgrecord component.Returns the value of theerrorUserSubtitlerecord component.Returns the value of thefbtraceIdrecord component.final inthashCode()Returns a hash code value for this object.Returns the value of theisTransientrecord component.message()Returns the value of themessagerecord component.Returns the value of themessagingProductrecord component.final StringtoString()Returns a string representation of this record class.type()Returns the value of thetyperecord component.
-
Constructor Details
-
Error
public Error(Integer code, String details, @Deprecated(forRemoval=true) Integer errorSubcode, String fbtraceId, String message, String messagingProduct, ErrorData errorData, String type, Boolean isTransient, String errorUserSubtitle, String errorUserMsg) Creates an instance of aErrorrecord class.- Parameters:
code- the value for thecoderecord componentdetails- the value for thedetailsrecord componenterrorSubcode- the value for theerrorSubcoderecord componentfbtraceId- the value for thefbtraceIdrecord componentmessage- the value for themessagerecord componentmessagingProduct- the value for themessagingProductrecord componenterrorData- the value for theerrorDatarecord componenttype- the value for thetyperecord componentisTransient- the value for theisTransientrecord componenterrorUserSubtitle- the value for theerrorUserSubtitlerecord componenterrorUserMsg- the value for theerrorUserMsgrecord component
-
-
Method Details
-
toString
Returns a string representation of this record class. The representation contains the name of the class, followed by the name and value of each of the record components. -
hashCode
public final int hashCode()Returns a hash code value for this object. The value is derived from the hash code of each of the record components. -
equals
Indicates whether some other object is "equal to" this one. The objects are equal if the other object is of the same class and if all the record components are equal. All components in this record class are compared withObjects::equals(Object,Object). -
code
Returns the value of thecoderecord component.- Returns:
- the value of the
coderecord component
-
details
Returns the value of thedetailsrecord component.- Returns:
- the value of the
detailsrecord component
-
errorSubcode
Deprecated, for removal: This API element is subject to removal in a future version.Returns the value of theerrorSubcoderecord component.- Returns:
- the value of the
errorSubcoderecord component
-
fbtraceId
Returns the value of thefbtraceIdrecord component.- Returns:
- the value of the
fbtraceIdrecord component
-
message
Returns the value of themessagerecord component.- Returns:
- the value of the
messagerecord component
-
messagingProduct
Returns the value of themessagingProductrecord component.- Returns:
- the value of the
messagingProductrecord component
-
errorData
Returns the value of theerrorDatarecord component.- Returns:
- the value of the
errorDatarecord component
-
type
Returns the value of thetyperecord component.- Returns:
- the value of the
typerecord component
-
isTransient
Returns the value of theisTransientrecord component.- Returns:
- the value of the
isTransientrecord component
-
errorUserSubtitle
Returns the value of theerrorUserSubtitlerecord component.- Returns:
- the value of the
errorUserSubtitlerecord component
-
errorUserMsg
Returns the value of theerrorUserMsgrecord component.- Returns:
- the value of the
errorUserMsgrecord component
-