N
N
Nikita222019-03-08 10:15:59
C++ / C#
Nikita22, 2019-03-08 10:15:59

Why is the exception not being handled in Visual Studio C#?

I don’t understand what the problem is, I did everything according to the instructions (from the video review)
The essence of the code is that it must give the name of the bot in Telegram.
Maybe it's not in the code, please tell me what to do!

Answer the question

In order to leave comments, you need to log in

1 answer(s)
C
CHolfield, 2019-03-08
@CHolfield

try
{
здесь твое говнокодие
Bot = итд...
}
catch (Exception ex)
{
MessageBox.Show(string.Format("Ошибка: {0}" + Environment.NewLine + "подробнее:  {1}",ex.Message, ex.InternalException?.Message));
}

and don’t be an asshole, don’t post screenshots of the code, post the code itself and error texts
and remove confidential data from what you post if it is there (the line with Bot = )
and why don’t you ask where this shit video review looked?
upd: try to insert the word await before Bot.GetMeAsync and add async to the method name before void

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question