toMessage method
override
Implementation
@override
String toMessage() {
switch (code) {
case AddUserPhoneErrorCode.artemisUnknown:
return 'err_data_transfer'.l10n;
case AddUserPhoneErrorCode.busy:
return 'err_you_already_has_unconfirmed_phone'.l10n;
case AddUserPhoneErrorCode.occupied:
return 'err_phone_occupied'.l10n;
case AddUserPhoneErrorCode.wrongCode:
return 'err_wrong_code'.l10n;
case AddUserPhoneErrorCode.tooMany:
return 'err_too_many_phones'.l10n;
}
}