toMessage method
override
Implementation
@override
String toMessage() {
switch (code) {
case AddUserEmailErrorCode.artemisUnknown:
return 'err_data_transfer'.l10n;
case AddUserEmailErrorCode.busy:
return 'err_you_already_has_unconfirmed_email'.l10n;
case AddUserEmailErrorCode.occupied:
return 'err_email_occupied'.l10n;
case AddUserEmailErrorCode.wrongCode:
return 'err_wrong_code'.l10n;
case AddUserEmailErrorCode.tooMany:
return 'err_too_many_emails'.l10n;
}
}