1/17
Looks like no tags are added yet.
Name | Mastery | Learn | Test | Matching | Spaced |
---|
No study sessions yet.
Exception
A class representing errors that occur during application execution.
ApplicationException
User-defined exceptions triggered by the application.
SystemException
Exceptions generated by the Common Language Runtime (CLR).
System.Exception
Base class for all exceptions in .NET.
ArithmeticException
Thrown when an error occurs in an arithmetic operation.
OverflowException
Thrown when an arithmetic operation exceeds the limits of the data type.
ArgumentException
Thrown when a method receives an invalid argument.
ArgumentNullException
Thrown when a null argument is passed to a method that doesn't accept it.
IndexOutOfRangeException
Thrown when accessing an array with an invalid index.
OutOfMemoryException
Thrown when the system runs out of memory.
StackOverflowException
Thrown when the execution stack overflows due to excessive method calls.
FormatException
Thrown when a string is not in the correct format.
try
Defines a block of code to monitor for exceptions.
catch
Defines a block of code to handle exceptions.
throw
Used to manually raise an exception.
finally
Defines a block of code that executes regardless of whether an exception occurred.
CustomizeException
User-defined exception class derived from System.Exception.
InvalidUserInputException
Custom exception thrown when user input is invalid.