Module java4ever.binding
Package tech.deplant.java4ever.binding
Record Class EverSdkException.ErrorResult
java.lang.Object
java.lang.Record
tech.deplant.java4ever.binding.EverSdkException.ErrorResult
- Enclosing class:
EverSdkException
public static record EverSdkException.ErrorResult(long code, String message, EverSdkException.ErrorResultData data)
extends Record
-
Constructor Summary
ConstructorsConstructorDescriptionErrorResult(long code, String message) ErrorResult(long code, String message, EverSdkException.ErrorResultData data) Creates an instance of aErrorResultrecord class. -
Method Summary
Modifier and TypeMethodDescriptionlongcode()Returns the value of thecoderecord component.data()Returns the value of thedatarecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.message()Returns the value of themessagerecord component.toLog()final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
ErrorResult
-
ErrorResult
Creates an instance of aErrorResultrecord class.- Parameters:
code- the value for thecoderecord componentmessage- the value for themessagerecord componentdata- the value for thedatarecord component
-
-
Method Details
-
toLog
-
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. Reference components are compared withObjects::equals(Object,Object); primitive components are compared with '=='. -
code
public long 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
-
data
Returns the value of thedatarecord component.- Returns:
- the value of the
datarecord component
-