toMessage method
override
Implementation
@override
String toMessage() {
switch (code) {
case UpdateUserPasswordErrorCode.wrongOldPassword:
return 'err_wrong_old_password'.l10n;
case UpdateUserPasswordErrorCode.wrongCode:
return 'err_wrong_code'.l10n;
case UpdateUserPasswordErrorCode.confirmationRequired:
return 'err_confirmation_required'.l10n;
case UpdateUserPasswordErrorCode.artemisUnknown:
return 'err_unknown'.l10n;
}
}