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
-
Method Summary
Modifier and TypeMethodDescriptioncode()
Returns the value of thecode
record component.details()
Returns the value of thedetails
record component.final boolean
Indicates whether some other object is "equal to" this one.Returns the value of theerrorData
record component.Deprecated, for removal: This API element is subject to removal in a future version.Returns the value of theerrorUserMsg
record component.Returns the value of theerrorUserSubtitle
record component.Returns the value of thefbtraceId
record component.final int
hashCode()
Returns a hash code value for this object.Returns the value of theisTransient
record component.message()
Returns the value of themessage
record component.Returns the value of themessagingProduct
record component.final String
toString()
Returns a string representation of this record class.type()
Returns the value of thetype
record 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 aError
record class.- Parameters:
code
- the value for thecode
record componentdetails
- the value for thedetails
record componenterrorSubcode
- the value for theerrorSubcode
record componentfbtraceId
- the value for thefbtraceId
record componentmessage
- the value for themessage
record componentmessagingProduct
- the value for themessagingProduct
record componenterrorData
- the value for theerrorData
record componenttype
- the value for thetype
record componentisTransient
- the value for theisTransient
record componenterrorUserSubtitle
- the value for theerrorUserSubtitle
record componenterrorUserMsg
- the value for theerrorUserMsg
record 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 thecode
record component.- Returns:
- the value of the
code
record component
-
details
Returns the value of thedetails
record component.- Returns:
- the value of the
details
record component
-
errorSubcode
Deprecated, for removal: This API element is subject to removal in a future version.Returns the value of theerrorSubcode
record component.- Returns:
- the value of the
errorSubcode
record component
-
fbtraceId
Returns the value of thefbtraceId
record component.- Returns:
- the value of the
fbtraceId
record component
-
message
Returns the value of themessage
record component.- Returns:
- the value of the
message
record component
-
messagingProduct
Returns the value of themessagingProduct
record component.- Returns:
- the value of the
messagingProduct
record component
-
errorData
Returns the value of theerrorData
record component.- Returns:
- the value of the
errorData
record component
-
type
Returns the value of thetype
record component.- Returns:
- the value of the
type
record component
-
isTransient
Returns the value of theisTransient
record component.- Returns:
- the value of the
isTransient
record component
-
errorUserSubtitle
Returns the value of theerrorUserSubtitle
record component.- Returns:
- the value of the
errorUserSubtitle
record component
-
errorUserMsg
Returns the value of theerrorUserMsg
record component.- Returns:
- the value of the
errorUserMsg
record component
-