@@ -258,7 +258,7 @@ func IsUnauthenticated(err error) bool {
258
258
//
259
259
// The gRPC framework will generate this error code when cancellation
260
260
// is requested.
261
- func CanceledErrorf (format string , a ... interface {} ) error {
261
+ func CanceledErrorf (format string , a ... any ) error {
262
262
return NewError (connect .CodeCanceled , fmt .Errorf (format , a ... ))
263
263
}
264
264
@@ -270,7 +270,7 @@ func CanceledErrorf(format string, a ...interface{}) error {
270
270
//
271
271
// The gRPC framework will generate this error code in the above two
272
272
// mentioned cases.
273
- func UnknownErrorf (format string , a ... interface {} ) error {
273
+ func UnknownErrorf (format string , a ... any ) error {
274
274
return NewError (connect .CodeUnknown , fmt .Errorf (format , a ... ))
275
275
}
276
276
@@ -280,7 +280,7 @@ func UnknownErrorf(format string, a ...interface{}) error {
280
280
// (e.g., a malformed file name).
281
281
//
282
282
// This error code will not be generated by the gRPC framework.
283
- func InvalidArgumentErrorf (format string , a ... interface {} ) error {
283
+ func InvalidArgumentErrorf (format string , a ... any ) error {
284
284
return NewError (connect .CodeInvalidArgument , fmt .Errorf (format , a ... ))
285
285
}
286
286
@@ -292,23 +292,23 @@ func InvalidArgumentErrorf(format string, a ...interface{}) error {
292
292
//
293
293
// The gRPC framework will generate this error code when the deadline is
294
294
// exceeded.
295
- func DeadlineExceededErrorf (format string , a ... interface {} ) error {
295
+ func DeadlineExceededErrorf (format string , a ... any ) error {
296
296
return NewError (connect .CodeDeadlineExceeded , fmt .Errorf (format , a ... ))
297
297
}
298
298
299
299
// NotFoundErrorf creates a new error that means some requested entity (e.g., file or directory) was
300
300
// not found.
301
301
//
302
302
// This error code will not be generated by the gRPC framework.
303
- func NotFoundErrorf (format string , a ... interface {} ) error {
303
+ func NotFoundErrorf (format string , a ... any ) error {
304
304
return NewError (connect .CodeNotFound , fmt .Errorf (format , a ... ))
305
305
}
306
306
307
307
// AlreadyExistsErrorf creates a new error that means an attempt to create an entity failed because one
308
308
// already exists.
309
309
//
310
310
// This error code will not be generated by the gRPC framework.
311
- func AlreadyExistsErrorf (format string , a ... interface {} ) error {
311
+ func AlreadyExistsErrorf (format string , a ... any ) error {
312
312
return NewError (connect .CodeAlreadyExists , fmt .Errorf (format , a ... ))
313
313
}
314
314
@@ -321,7 +321,7 @@ func AlreadyExistsErrorf(format string, a ...interface{}) error {
321
321
//
322
322
// This error code will not be generated by the gRPC core framework,
323
323
// but expect authentication middleware to use it.
324
- func PermissionDeniedErrorf (format string , a ... interface {} ) error {
324
+ func PermissionDeniedErrorf (format string , a ... any ) error {
325
325
return NewError (connect .CodePermissionDenied , fmt .Errorf (format , a ... ))
326
326
}
327
327
@@ -331,7 +331,7 @@ func PermissionDeniedErrorf(format string, a ...interface{}) error {
331
331
// This error code will be generated by the gRPC framework in
332
332
// out-of-memory and server overload situations, or when a message is
333
333
// larger than the configured maximum size.
334
- func ResourceExhaustedErrorf (format string , a ... interface {} ) error {
334
+ func ResourceExhaustedErrorf (format string , a ... any ) error {
335
335
return NewError (connect .CodeResourceExhausted , fmt .Errorf (format , a ... ))
336
336
}
337
337
@@ -357,7 +357,7 @@ func ResourceExhaustedErrorf(format string, a ...interface{}) error {
357
357
// read-modify-write on the same resource.
358
358
//
359
359
// This error code will not be generated by the gRPC framework.
360
- func FailedPreconditionErrorf (format string , a ... interface {} ) error {
360
+ func FailedPreconditionErrorf (format string , a ... any ) error {
361
361
return NewError (connect .CodeFailedPrecondition , fmt .Errorf (format , a ... ))
362
362
}
363
363
@@ -369,7 +369,7 @@ func FailedPreconditionErrorf(format string, a ...interface{}) error {
369
369
// Aborted, and Unavailable.
370
370
//
371
371
// This error code will not be generated by the gRPC framework.
372
- func AbortedErrorf (format string , a ... interface {} ) error {
372
+ func AbortedErrorf (format string , a ... any ) error {
373
373
return NewError (connect .CodeAborted , fmt .Errorf (format , a ... ))
374
374
}
375
375
@@ -390,7 +390,7 @@ func AbortedErrorf(format string, a ...interface{}) error {
390
390
// they are done.
391
391
//
392
392
// This error code will not be generated by the gRPC framework.
393
- func OutOfRangeErrorf (format string , a ... interface {} ) error {
393
+ func OutOfRangeErrorf (format string , a ... any ) error {
394
394
return NewError (connect .CodeOutOfRange , fmt .Errorf (format , a ... ))
395
395
}
396
396
@@ -402,7 +402,7 @@ func OutOfRangeErrorf(format string, a ...interface{}) error {
402
402
// is missing on the server. It can also be generated for unknown
403
403
// compression algorithms or a disagreement as to whether an RPC should
404
404
// be streaming.
405
- func UnimplementedErrorf (format string , a ... interface {} ) error {
405
+ func UnimplementedErrorf (format string , a ... any ) error {
406
406
return NewError (connect .CodeUnimplemented , fmt .Errorf (format , a ... ))
407
407
}
408
408
@@ -412,7 +412,7 @@ func UnimplementedErrorf(format string, a ...interface{}) error {
412
412
//
413
413
// This error code will be generated by the gRPC framework in several
414
414
// internal error conditions.
415
- func InternalErrorf (format string , a ... interface {} ) error {
415
+ func InternalErrorf (format string , a ... any ) error {
416
416
return NewError (connect .CodeInternal , fmt .Errorf (format , a ... ))
417
417
}
418
418
@@ -426,14 +426,14 @@ func InternalErrorf(format string, a ...interface{}) error {
426
426
//
427
427
// This error code will be generated by the gRPC framework during
428
428
// abrupt shutdown of a server process or network connection.
429
- func UnavailableErrorf (format string , a ... interface {} ) error {
429
+ func UnavailableErrorf (format string , a ... any ) error {
430
430
return NewError (connect .CodeUnavailable , fmt .Errorf (format , a ... ))
431
431
}
432
432
433
433
// DataLossErrorf creates a new error that indicates unrecoverable data loss or corruption.
434
434
//
435
435
// This error code will not be generated by the gRPC framework.
436
- func DataLossErrorf (format string , a ... interface {} ) error {
436
+ func DataLossErrorf (format string , a ... any ) error {
437
437
return NewError (connect .CodeDataLoss , fmt .Errorf (format , a ... ))
438
438
}
439
439
@@ -443,7 +443,7 @@ func DataLossErrorf(format string, a ...interface{}) error {
443
443
// The gRPC framework will generate this error code when the
444
444
// authentication metadata is invalid or a Credentials callback fails,
445
445
// but also expect authentication middleware to generate it.
446
- func UnauthenticatedErrorf (format string , a ... interface {} ) error {
446
+ func UnauthenticatedErrorf (format string , a ... any ) error {
447
447
return NewError (connect .CodeUnauthenticated , fmt .Errorf (format , a ... ))
448
448
}
449
449
0 commit comments