InsertUserName
Member
- Joined
- Apr 19, 2020
- Messages
- 7
- Programming Experience
- 1-3
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.
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.