toMessage method
override
Implementation
@override
String toMessage() {
switch (code) {
case ForwardChatItemsErrorCode.blocked:
return 'err_blocked'.l10n;
case ForwardChatItemsErrorCode.unknownChat:
case ForwardChatItemsErrorCode.unknownUser:
case ForwardChatItemsErrorCode.unknownForwardedAttachment:
case ForwardChatItemsErrorCode.noQuotedContent:
case ForwardChatItemsErrorCode.notEnoughFunds:
case ForwardChatItemsErrorCode.unallowedDonation:
case ForwardChatItemsErrorCode.unknownForwardedDonation:
case ForwardChatItemsErrorCode.wrongItemsCount:
case ForwardChatItemsErrorCode.unsupportedForwardedItem:
case ForwardChatItemsErrorCode.unknownAttachment:
case ForwardChatItemsErrorCode.unknownForwardedItem:
case ForwardChatItemsErrorCode.disabledDonation:
case ForwardChatItemsErrorCode.tooSmallDonation:
return toString();
case ForwardChatItemsErrorCode.artemisUnknown:
return 'err_unknown'.l10n;
}
}