Handle error with try catch blocks system() #12913

Open
opened 2026-01-31 03:28:49 +00:00 by claunia · 0 comments
Owner

Originally created by @Goru1890 on GitHub (Mar 8, 2021).

Does anyone know how I can handle system() errors with try catch in C++ ?
I want to throw an excepctions when a error ocurres in the terminal, like Cuda Out of Memory or something else
Now I have this, but of course it's stucked in the system() line

Originally created by @Goru1890 on GitHub (Mar 8, 2021). Does anyone know how I can handle system() errors with try catch in C++ ? I want to throw an excepctions when a error ocurres in the terminal, like Cuda Out of Memory or something else Now I have this, but of course it's stucked in the system() line ![](https://cdn.discordapp.com/attachments/787383971012411414/818418846222254100/unknown.png) ![](https://cdn.discordapp.com/attachments/787383971012411414/818418928119185418/unknown.png)
claunia added the Issue-QuestionNeeds-TriageNeeds-Tag-Fix labels 2026-01-31 03:28:49 +00:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/terminal#12913