@@ -130,6 +130,9 @@ const (
130130
131131 // LimitExceeded indicates that a CRE limit breach has occurred.
132132 LimitExceeded ErrorCode = 101
133+
134+ // InsufficientObservations indicates that there are not enough observations to enable the operation to complete.
135+ InsufficientObservations ErrorCode = 102
133136)
134137
135138// String returns the string representation of the ErrorCode.
@@ -157,8 +160,9 @@ var errorCodeToString = map[ErrorCode]string{
157160 Unavailable : "Unavailable" ,
158161 DataLoss : "DataLoss" ,
159162 Unauthenticated : "Unauthenticated" ,
160- ConsensusFailed : "ConsensusFailed" ,
161- LimitExceeded : "LimitExceeded" ,
163+ ConsensusFailed : "ConsensusFailed" ,
164+ LimitExceeded : "LimitExceeded" ,
165+ InsufficientObservations : "InsufficientObservations" ,
162166}
163167
164168var stringToErrorCode = map [string ]ErrorCode {
@@ -178,8 +182,9 @@ var stringToErrorCode = map[string]ErrorCode{
178182 "Unavailable" : Unavailable ,
179183 "DataLoss" : DataLoss ,
180184 "Unauthenticated" : Unauthenticated ,
181- "ConsensusFailed" : ConsensusFailed ,
182- "LimitExceeded" : LimitExceeded ,
185+ "ConsensusFailed" : ConsensusFailed ,
186+ "LimitExceeded" : LimitExceeded ,
187+ "InsufficientObservations" : InsufficientObservations ,
183188}
184189
185190func FromErrorCodeString (str string ) ErrorCode {
0 commit comments