toMessage method

  1. @override
String toMessage()
override

Implementation

@override
String toMessage() {
  switch (code) {
    case CreateSessionErrorCode.wrongPassword:
      return 'err_incorrect_login_or_password'.l10n;
    case CreateSessionErrorCode.wrongCode:
      return 'err_wrong_code'.l10n;
    case CreateSessionErrorCode.artemisUnknown:
      return 'err_unknown'.l10n;
  }
}