diff options
author | Aleksander Morgado <aleksandermj@chromium.org> | 2023-10-26 11:28:41 +0000 |
---|---|---|
committer | Aleksander Morgado <aleksandermj@chromium.org> | 2023-10-26 12:35:43 +0000 |
commit | e0bcf0a3c4cd6b39eb4ee7d1ed368346509b8ff4 (patch) | |
tree | 74d058ade72108196e8b7319f9fe7d1ac352bfbe /include | |
parent | 8115b651dea850c29550518968042410e3688c64 (diff) |
api,errors: add generic MM_CORE_ERROR_THROTTLED error
Will be used to report operations that are not run as they have been
attempted too many times already.
Modems will usually report this kind of error e.g. when attempting to
connect with the same invalid APN too many times. The modem at some
point decides that it won't attempt the APN connection with the
network any more, so it returns this error to the caller right away.
Diffstat (limited to 'include')
-rw-r--r-- | include/ModemManager-errors.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/include/ModemManager-errors.h b/include/ModemManager-errors.h index 7c03fb6a..fa622d17 100644 --- a/include/ModemManager-errors.h +++ b/include/ModemManager-errors.h @@ -105,6 +105,7 @@ * @MM_CORE_ERROR_RESET_AND_RETRY: Operation cannot yet be performed, reset the retry count and retry later. Since 1.22. * @MM_CORE_ERROR_TIMEOUT: Operation timed out. Since 1.24. * @MM_CORE_ERROR_PROTOCOL: Operation failed due to an underlying control protocol error. Since 1.24. + * @MM_CORE_ERROR_THROTTLED: Operation was attempted too many times. Since 1.24. * * Common errors that may be reported by ModemManager. * @@ -129,6 +130,7 @@ typedef enum { /*< underscore_name=mm_core_error >*/ MM_CORE_ERROR_RESET_AND_RETRY = 15, /*< nick=ResetRetry >*/ MM_CORE_ERROR_TIMEOUT = 16, /*< nick=Timeout >*/ MM_CORE_ERROR_PROTOCOL = 17, /*< nick=Protocol >*/ + MM_CORE_ERROR_THROTTLED = 18, /*< nick=Throttled >*/ } MMCoreError; /** |