Categories > Coding > C# >
How to catch all exceptions
Posted
As the title says how to catch all exceptions in C#
not using
try
{
}
catch (exception)
{
}
Hey I'm the first person on Wearedevs.net!
Replied
https://docs.microsoft.com/en-us/dotnet/api/system.appdomain.unhandledexception?view=net-5.0
I'm not giving you codes lol go learn that, It should catch all unhandled exceptions around the domain
Cancel
Post
Replied
Maximus is gay so i'll just give it to you. Just do:
try
{
}
catch
{
}
Cancel
Post
Replied
as i said i don't want to use
Try
{
}
catch(exception)
{
}
Method i already know it but im trying to catch all unexpected exceptions in a class
so whenever any exception happens it just shows a messagebox
Cancel
Post
Hey I'm the first person on Wearedevs.net!
My new discord is Wabz#1337 with ID 777154062789509130
Hey I'm the first person on Wearedevs.net!
Replied
He asked for a way that's not using that code, why do you have to be so toxic?
Cancel
Post
Don't buy exploits its not worth it your gonna quit anyway
Taking accountability will help you excel in life
Replied
Cancel
Post
Replied
@Moon Bro how is he being impatient lol all he is doing is telling the man to read the documentation. The dude was being a jerk anyways "ThAnKs FoR nOtHiNg".
Cancel
Post
Don't buy exploits its not worth it your gonna quit anyway
Taking accountability will help you excel in life
Replied
@63568 rip my rep they even deleted thread
Cancel
Post
Why are you here
Users viewing this thread:
( Members: 0, Guests: 2, Total: 2 )
Cancel
Post