MCPcopy Create free account
hub / github.com/langgenius/dify / toEnvelope

Method toEnvelope

cli/src/errors/base.ts:106–119  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

104 }
105
106 override toEnvelope(): ErrorEnvelope {
107 const envelope = super.toEnvelope()
108 if (this.httpStatus !== undefined)
109 envelope.error.http_status = this.httpStatus
110 if (this.method !== undefined)
111 envelope.error.method = this.method
112 if (this.url !== undefined)
113 envelope.error.url = this.url
114 if (this.rawResponse !== undefined)
115 envelope.error.raw_response = this.rawResponse
116 if (this.serverError !== undefined)
117 envelope.error.server = this.serverError
118 return envelope
119 }
120
121 protected override snapshot(): HttpClientErrorOptions {
122 return {

Callers

nothing calls this directly

Calls 1

toEnvelopeMethod · 0.45

Tested by

no test coverage detected