toMessage method

  1. @override
String toMessage()
override

Implementation

@override
String toMessage() {
  switch (code) {
    case DeleteSessionErrorCode.wrongPassword:
      return 'err_wrong_password'.l10n;
    case DeleteSessionErrorCode.wrongCode:
      return 'err_wrong_code'.l10n;
    case DeleteSessionErrorCode.confirmationRequired:
      return 'err_confirmation_required'.l10n;
    case DeleteSessionErrorCode.artemisUnknown:
      return 'err_unknown'.l10n;
  }
}