@@ -41,7 +41,7 @@ var errorMessages = map[int]string{
41
41
42
42
// IsInvalidArgument checks if the given error was due to an invalid instance ID argument.
43
43
//
44
- // Deprecated. Use errorutils.IsInvalidArgument() function instead.
44
+ // Deprecated: Use errorutils.IsInvalidArgument() function instead.
45
45
func IsInvalidArgument (err error ) bool {
46
46
return errorutils .IsInvalidArgument (err )
47
47
}
@@ -50,7 +50,7 @@ func IsInvalidArgument(err error) bool {
50
50
// required authorization. This could be due to the client not having the required permission
51
51
// or the specified instance ID not matching the target Firebase project.
52
52
//
53
- // Deprecated. Use errorutils.IsUnauthenticated() or errorutils.IsPermissionDenied() instead.
53
+ // Deprecated: Use errorutils.IsUnauthenticated() or errorutils.IsPermissionDenied() instead.
54
54
func IsInsufficientPermission (err error ) bool {
55
55
return errorutils .IsUnauthenticated (err ) || errorutils .IsPermissionDenied (err )
56
56
}
@@ -63,37 +63,37 @@ func IsNotFound(err error) bool {
63
63
// IsAlreadyDeleted checks if the given error was due to the instance ID being already deleted from
64
64
// the project.
65
65
//
66
- // Deprecated. Use errorutils.IsConflict() function instead.
66
+ // Deprecated: Use errorutils.IsConflict() function instead.
67
67
func IsAlreadyDeleted (err error ) bool {
68
68
return errorutils .IsConflict (err )
69
69
}
70
70
71
71
// IsTooManyRequests checks if the given error was due to the client sending too many requests
72
72
// causing a server quota to exceed.
73
73
//
74
- // Deprecated. Use errorutils.IsResourceExhausted() function instead.
74
+ // Deprecated: Use errorutils.IsResourceExhausted() function instead.
75
75
func IsTooManyRequests (err error ) bool {
76
76
return errorutils .IsResourceExhausted (err )
77
77
}
78
78
79
79
// IsInternal checks if the given error was due to an internal server error.
80
80
//
81
- // Deprecated. Use errorutils.IsInternal() function instead.
81
+ // Deprecated: Use errorutils.IsInternal() function instead.
82
82
func IsInternal (err error ) bool {
83
83
return errorutils .IsInternal (err )
84
84
}
85
85
86
86
// IsServerUnavailable checks if the given error was due to the backend server being temporarily
87
87
// unavailable.
88
88
//
89
- // Deprecated. Use errorutils.IsUnavailable() function instead.
89
+ // Deprecated: Use errorutils.IsUnavailable() function instead.
90
90
func IsServerUnavailable (err error ) bool {
91
91
return errorutils .IsUnavailable (err )
92
92
}
93
93
94
94
// IsUnknown checks if the given error was due to unknown error returned by the backend server.
95
95
//
96
- // Deprecated. Use errorutils.IsUnknown() function instead.
96
+ // Deprecated: Use errorutils.IsUnknown() function instead.
97
97
func IsUnknown (err error ) bool {
98
98
return errorutils .IsUnknown (err )
99
99
}
0 commit comments