Init a FormError with the errorCode and message.
FormError({required this.errorCode, required this.message});