Include Channel API changes from the 1.6.6 SDK
@@ -75,6 +75,10 @@ class InvalidMessageError(Error):
"""Error that indicates a message is malformed."""
+class AppIdAliasRequired(Error):
+ """Error that indicates you must assign an application alias to your app."""
+
+
def _ToChannelError(error):
"""Translate an application error to a channel Error, if possible.
@@ -90,6 +94,8 @@ def _ToChannelError(error):
InvalidChannelClientIdError,
channel_service_pb.ChannelServiceError.BAD_MESSAGE:
InvalidMessageError,
+ channel_service_pb.ChannelServiceError.APPID_ALIAS_REQUIRED:
+ AppIdAliasRequired
}
if error.application_error in error_map:
