@@ -1429,6 +1429,9 @@ pub enum ErrorCode {
14291429 /// An error occurred in the gateway.
14301430 #[ pyo3( name = "INTERNAL_ERROR" ) ]
14311431 InternalError = 6 ,
1432+ /// A slow client was detected and records were skipped by the gateway to allow catching up.
1433+ #[ pyo3( name = "SKIPPED_RECORDS_AFTER_SLOW_READING" ) ]
1434+ SkippedRecordsAfterSlowReading = 7 ,
14321435 /// No error code was specified or this record was upgraded from a version 1 struct where the code field didn't exist.
14331436 #[ default]
14341437 #[ pyo3( name = "UNSET" ) ]
@@ -1446,6 +1449,7 @@ impl std::str::FromStr for ErrorCode {
14461449 "symbol_resolution_failed" => Ok ( Self :: SymbolResolutionFailed ) ,
14471450 "invalid_subscription" => Ok ( Self :: InvalidSubscription ) ,
14481451 "internal_error" => Ok ( Self :: InternalError ) ,
1452+ "skipped_records_after_slow_reading" => Ok ( Self :: SkippedRecordsAfterSlowReading ) ,
14491453 "unset" => Ok ( Self :: Unset ) ,
14501454 _ => Err ( crate :: Error :: conversion :: < Self > ( s. to_owned ( ) ) ) ,
14511455 }
@@ -1468,6 +1472,7 @@ impl ErrorCode {
14681472 Self :: SymbolResolutionFailed => "symbol_resolution_failed" ,
14691473 Self :: InvalidSubscription => "invalid_subscription" ,
14701474 Self :: InternalError => "internal_error" ,
1475+ Self :: SkippedRecordsAfterSlowReading => "skipped_records_after_slow_reading" ,
14711476 Self :: Unset => "unset" ,
14721477 }
14731478 }
0 commit comments