Exception
An object describing a problem that interrupts normal program flow.
What is Exception in C#?
Exception — An object describing a problem that interrupts normal program flow.
class Reservation
{
void Reserve(int seats)
{
if (seats < 1)
{
throw new ArgumentException("Seat count must be positive");
}
}
}
Level: Journeyman · More C# terms at this level
Updated