@@ -41,7 +41,7 @@ var errorMessages = map[int]string{
4141
4242// IsInvalidArgument checks if the given error was due to an invalid instance ID argument.
4343//
44- // Deprecated. Use errorutils.IsInvalidArgument() function instead.
44+ // Deprecated: Use errorutils.IsInvalidArgument() function instead.
4545func IsInvalidArgument (err error ) bool {
4646 return errorutils .IsInvalidArgument (err )
4747}
@@ -50,7 +50,7 @@ func IsInvalidArgument(err error) bool {
5050// required authorization. This could be due to the client not having the required permission
5151// or the specified instance ID not matching the target Firebase project.
5252//
53- // Deprecated. Use errorutils.IsUnauthenticated() or errorutils.IsPermissionDenied() instead.
53+ // Deprecated: Use errorutils.IsUnauthenticated() or errorutils.IsPermissionDenied() instead.
5454func IsInsufficientPermission (err error ) bool {
5555 return errorutils .IsUnauthenticated (err ) || errorutils .IsPermissionDenied (err )
5656}
@@ -63,37 +63,37 @@ func IsNotFound(err error) bool {
6363// IsAlreadyDeleted checks if the given error was due to the instance ID being already deleted from
6464// the project.
6565//
66- // Deprecated. Use errorutils.IsConflict() function instead.
66+ // Deprecated: Use errorutils.IsConflict() function instead.
6767func IsAlreadyDeleted (err error ) bool {
6868 return errorutils .IsConflict (err )
6969}
7070
7171// IsTooManyRequests checks if the given error was due to the client sending too many requests
7272// causing a server quota to exceed.
7373//
74- // Deprecated. Use errorutils.IsResourceExhausted() function instead.
74+ // Deprecated: Use errorutils.IsResourceExhausted() function instead.
7575func IsTooManyRequests (err error ) bool {
7676 return errorutils .IsResourceExhausted (err )
7777}
7878
7979// IsInternal checks if the given error was due to an internal server error.
8080//
81- // Deprecated. Use errorutils.IsInternal() function instead.
81+ // Deprecated: Use errorutils.IsInternal() function instead.
8282func IsInternal (err error ) bool {
8383 return errorutils .IsInternal (err )
8484}
8585
8686// IsServerUnavailable checks if the given error was due to the backend server being temporarily
8787// unavailable.
8888//
89- // Deprecated. Use errorutils.IsUnavailable() function instead.
89+ // Deprecated: Use errorutils.IsUnavailable() function instead.
9090func IsServerUnavailable (err error ) bool {
9191 return errorutils .IsUnavailable (err )
9292}
9393
9494// IsUnknown checks if the given error was due to unknown error returned by the backend server.
9595//
96- // Deprecated. Use errorutils.IsUnknown() function instead.
96+ // Deprecated: Use errorutils.IsUnknown() function instead.
9797func IsUnknown (err error ) bool {
9898 return errorutils .IsUnknown (err )
9999}
0 commit comments