toMessage method

  1. @override
String toMessage()
override

Implementation

@override
String toMessage() {
  switch (code) {
    case UpdateWelcomeMessageErrorCode.wrongAttachmentsCount:
      return 'err_wrong_attachments_items_count'.l10n;
    case UpdateWelcomeMessageErrorCode.unknownAttachment:
      return 'err_unknown_attachment'.l10n;
    case UpdateWelcomeMessageErrorCode.noTextAndNoAttachment:
      return 'err_no_text_and_no_attachment'.l10n;
    case UpdateWelcomeMessageErrorCode.artemisUnknown:
      return 'err_unknown'.l10n;
  }
}