Package com.github.copilot.sdk.generated
Record Class SessionErrorEvent.SessionErrorEventData
java.lang.Object
java.lang.Record
com.github.copilot.sdk.generated.SessionErrorEvent.SessionErrorEventData
- Enclosing class:
- SessionErrorEvent
public static record SessionErrorEvent.SessionErrorEventData(String errorType, String message, String stack, Long statusCode, String providerCallId, String url)
extends Record
Data payload for
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.url()Returns the value of theurlrecord component.
-
Constructor Details
-
SessionErrorEventData
public SessionErrorEventData(String errorType, String message, String stack, Long statusCode, String providerCallId, String url) Creates an instance of aSessionErrorEventDatarecord 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 componenturl- the value for theurlrecord 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
-
url
Returns the value of theurlrecord component.- Returns:
- the value of the
urlrecord component
-