D
DreadLypa
Guest
Hi, everybody.
Why and when do I use "Debug.LogError" if I can always use "throw"?
I just don't understand the logic of the choice.
I have an example of the class "SteamAPI", they are initializing and in cases of failure, "Debug.LogError.... return;" is called where the error is written, BUT why not call "throw"? The same way an error will be written to the console.
I understand that "throw" interrupts execution.
Continue reading...
Why and when do I use "Debug.LogError" if I can always use "throw"?
I just don't understand the logic of the choice.
I have an example of the class "SteamAPI", they are initializing and in cases of failure, "Debug.LogError.... return;" is called where the error is written, BUT why not call "throw"? The same way an error will be written to the console.
I understand that "throw" interrupts execution.
Continue reading...