22 Kasım 2018 Perşembe

std::out_of_range Exception Sınıfı

Açıklaması şöyle.
There is no reference to the string used to initialise these exceptions when thrown by the standard library at all.
Açıklaması şöyle.
Exception text should never be shown to the user unless you created the text yourself. It will almost certainly not be anything other than English ASCII, but more to the point it won't be useful to users in 99% of cases. You should catch exceptions and show the user something actually useful, such as "Your name does not fit in our 1980's style database, so we have mutated it for you. Your name is now ${NAME}.

Hiç yorum yok:

Yorum Gönder