Record Class GithubException.ErrorDetail
java.lang.Object
java.lang.Record
ink.icoding.github4j.GithubException.ErrorDetail
- Enclosing class:
GithubException
-
Constructor Summary
ConstructorsConstructorDescriptionErrorDetail(String resource, String field, String code, String message) Creates an instance of aErrorDetailrecord class. -
Method Summary
Modifier and TypeMethodDescriptioncode()Returns the value of thecoderecord component.final booleanIndicates whether some other object is "equal to" this one.field()Returns the value of thefieldrecord component.final inthashCode()Returns a hash code value for this object.message()Returns the value of themessagerecord component.resource()Returns the value of theresourcerecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
ErrorDetail
Creates an instance of aErrorDetailrecord class.- Parameters:
resource- the value for theresourcerecord componentfield- the value for thefieldrecord componentcode- the value for thecoderecord componentmessage- the value for themessagerecord component
-
-
Method Details
-
toString
-
hashCode
-
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). -
resource
Returns the value of theresourcerecord component.- Returns:
- the value of the
resourcerecord component
-
field
Returns the value of thefieldrecord component.- Returns:
- the value of the
fieldrecord component
-
code
Returns the value of thecoderecord component.- Returns:
- the value of the
coderecord component
-
message
Returns the value of themessagerecord component.- Returns:
- the value of the
messagerecord component
-