@@ -258,7 +258,7 @@ func IsUnauthenticated(err error) bool {
258258//
259259// The gRPC framework will generate this error code when cancellation
260260// is requested.
261- func CanceledErrorf (format string , a ... interface {} ) error {
261+ func CanceledErrorf (format string , a ... any ) error {
262262 return NewError (connect .CodeCanceled , fmt .Errorf (format , a ... ))
263263}
264264
@@ -270,7 +270,7 @@ func CanceledErrorf(format string, a ...interface{}) error {
270270//
271271// The gRPC framework will generate this error code in the above two
272272// mentioned cases.
273- func UnknownErrorf (format string , a ... interface {} ) error {
273+ func UnknownErrorf (format string , a ... any ) error {
274274 return NewError (connect .CodeUnknown , fmt .Errorf (format , a ... ))
275275}
276276
@@ -280,7 +280,7 @@ func UnknownErrorf(format string, a ...interface{}) error {
280280// (e.g., a malformed file name).
281281//
282282// 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 {
284284 return NewError (connect .CodeInvalidArgument , fmt .Errorf (format , a ... ))
285285}
286286
@@ -292,23 +292,23 @@ func InvalidArgumentErrorf(format string, a ...interface{}) error {
292292//
293293// The gRPC framework will generate this error code when the deadline is
294294// exceeded.
295- func DeadlineExceededErrorf (format string , a ... interface {} ) error {
295+ func DeadlineExceededErrorf (format string , a ... any ) error {
296296 return NewError (connect .CodeDeadlineExceeded , fmt .Errorf (format , a ... ))
297297}
298298
299299// NotFoundErrorf creates a new error that means some requested entity (e.g., file or directory) was
300300// not found.
301301//
302302// 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 {
304304 return NewError (connect .CodeNotFound , fmt .Errorf (format , a ... ))
305305}
306306
307307// AlreadyExistsErrorf creates a new error that means an attempt to create an entity failed because one
308308// already exists.
309309//
310310// 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 {
312312 return NewError (connect .CodeAlreadyExists , fmt .Errorf (format , a ... ))
313313}
314314
@@ -321,7 +321,7 @@ func AlreadyExistsErrorf(format string, a ...interface{}) error {
321321//
322322// This error code will not be generated by the gRPC core framework,
323323// but expect authentication middleware to use it.
324- func PermissionDeniedErrorf (format string , a ... interface {} ) error {
324+ func PermissionDeniedErrorf (format string , a ... any ) error {
325325 return NewError (connect .CodePermissionDenied , fmt .Errorf (format , a ... ))
326326}
327327
@@ -331,7 +331,7 @@ func PermissionDeniedErrorf(format string, a ...interface{}) error {
331331// This error code will be generated by the gRPC framework in
332332// out-of-memory and server overload situations, or when a message is
333333// larger than the configured maximum size.
334- func ResourceExhaustedErrorf (format string , a ... interface {} ) error {
334+ func ResourceExhaustedErrorf (format string , a ... any ) error {
335335 return NewError (connect .CodeResourceExhausted , fmt .Errorf (format , a ... ))
336336}
337337
@@ -357,7 +357,7 @@ func ResourceExhaustedErrorf(format string, a ...interface{}) error {
357357// read-modify-write on the same resource.
358358//
359359// 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 {
361361 return NewError (connect .CodeFailedPrecondition , fmt .Errorf (format , a ... ))
362362}
363363
@@ -369,7 +369,7 @@ func FailedPreconditionErrorf(format string, a ...interface{}) error {
369369// Aborted, and Unavailable.
370370//
371371// 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 {
373373 return NewError (connect .CodeAborted , fmt .Errorf (format , a ... ))
374374}
375375
@@ -390,7 +390,7 @@ func AbortedErrorf(format string, a ...interface{}) error {
390390// they are done.
391391//
392392// 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 {
394394 return NewError (connect .CodeOutOfRange , fmt .Errorf (format , a ... ))
395395}
396396
@@ -402,7 +402,7 @@ func OutOfRangeErrorf(format string, a ...interface{}) error {
402402// is missing on the server. It can also be generated for unknown
403403// compression algorithms or a disagreement as to whether an RPC should
404404// be streaming.
405- func UnimplementedErrorf (format string , a ... interface {} ) error {
405+ func UnimplementedErrorf (format string , a ... any ) error {
406406 return NewError (connect .CodeUnimplemented , fmt .Errorf (format , a ... ))
407407}
408408
@@ -412,7 +412,7 @@ func UnimplementedErrorf(format string, a ...interface{}) error {
412412//
413413// This error code will be generated by the gRPC framework in several
414414// internal error conditions.
415- func InternalErrorf (format string , a ... interface {} ) error {
415+ func InternalErrorf (format string , a ... any ) error {
416416 return NewError (connect .CodeInternal , fmt .Errorf (format , a ... ))
417417}
418418
@@ -426,14 +426,14 @@ func InternalErrorf(format string, a ...interface{}) error {
426426//
427427// This error code will be generated by the gRPC framework during
428428// 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 {
430430 return NewError (connect .CodeUnavailable , fmt .Errorf (format , a ... ))
431431}
432432
433433// DataLossErrorf creates a new error that indicates unrecoverable data loss or corruption.
434434//
435435// 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 {
437437 return NewError (connect .CodeDataLoss , fmt .Errorf (format , a ... ))
438438}
439439
@@ -443,7 +443,7 @@ func DataLossErrorf(format string, a ...interface{}) error {
443443// The gRPC framework will generate this error code when the
444444// authentication metadata is invalid or a Credentials callback fails,
445445// but also expect authentication middleware to generate it.
446- func UnauthenticatedErrorf (format string , a ... interface {} ) error {
446+ func UnauthenticatedErrorf (format string , a ... any ) error {
447447 return NewError (connect .CodeUnauthenticated , fmt .Errorf (format , a ... ))
448448}
449449
0 commit comments