Package com.github.copilot.sdk.events
Record Class SessionErrorEvent.SessionErrorData
java.lang.Object
java.lang.Record
com.github.copilot.sdk.events.SessionErrorEvent.SessionErrorData
- Enclosing class:
- SessionErrorEvent
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.Returns the value of theerrorTyperecord component.final inthashCode()Returns a hash code value for this object.message()Returns the value of themessagerecord component.Returns the value of theproviderCallIdrecord component.stack()Returns the value of thestackrecord component.Returns the value of thestatusCoderecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
SessionErrorData
public SessionErrorData(String errorType, String message, String stack, Double statusCode, String providerCallId) Creates an instance of aSessionErrorDatarecord class.- Parameters:
errorType- the value for theerrorTyperecord componentmessage- the value for themessagerecord componentstack- the value for thestackrecord componentstatusCode- the value for thestatusCoderecord componentproviderCallId- the value for theproviderCallIdrecord 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). -
errorType
Returns the value of theerrorTyperecord component.- Returns:
- the value of the
errorTyperecord component
-
message
Returns the value of themessagerecord component.- Returns:
- the value of the
messagerecord component
-
stack
Returns the value of thestackrecord component.- Returns:
- the value of the
stackrecord component
-
statusCode
Returns the value of thestatusCoderecord component.- Returns:
- the value of the
statusCoderecord component
-
providerCallId
Returns the value of theproviderCallIdrecord component.- Returns:
- the value of the
providerCallIdrecord component
-