@@ -35,6 +35,7 @@ import { TradeEventStreamCommandInput, TradeEventStreamCommandOutput } from "../
3535import {
3636 CodedThrottlingError ,
3737 HaltError ,
38+ MainServiceLinkedError ,
3839 MysteryThrottlingError ,
3940 RetryableError ,
4041 XYZServiceServiceException ,
@@ -133,6 +134,9 @@ const de_CommandError = async (
133134 case "HaltError" :
134135 case "org.xyz.v1#HaltError" :
135136 throw await de_HaltErrorRes ( parsedOutput , context ) ;
137+ case "MainServiceLinkedError" :
138+ case "org.xyz.v1#MainServiceLinkedError" :
139+ throw await de_MainServiceLinkedErrorRes ( parsedOutput , context ) ;
136140 case "MysteryThrottlingError" :
137141 case "org.xyz.v1#MysteryThrottlingError" :
138142 throw await de_MysteryThrottlingErrorRes ( parsedOutput , context ) ;
@@ -184,6 +188,22 @@ const de_HaltErrorRes = async (
184188 return __decorateServiceException ( exception , body ) ;
185189} ;
186190
191+ /**
192+ * deserializeRpcv2cborMainServiceLinkedErrorRes
193+ */
194+ const de_MainServiceLinkedErrorRes = async (
195+ parsedOutput : any ,
196+ context : __SerdeContext
197+ ) : Promise < MainServiceLinkedError > => {
198+ const body = parsedOutput . body
199+ const deserialized : any = _json ( body ) ;
200+ const exception = new MainServiceLinkedError ( {
201+ $metadata : deserializeMetadata ( parsedOutput ) ,
202+ ...deserialized
203+ } ) ;
204+ return __decorateServiceException ( exception , body ) ;
205+ } ;
206+
187207/**
188208 * deserializeRpcv2cborMysteryThrottlingErrorRes
189209 */
@@ -382,6 +402,8 @@ const se_Alpha_event = (
382402
383403 // de_HaltError omitted.
384404
405+ // de_MainServiceLinkedError omitted.
406+
385407 // de_MysteryThrottlingError omitted.
386408
387409 // de_RetryableError omitted.
0 commit comments