Skip to content

Glossary: C# Basics

throw

A keyword that stops the method and sends an exception to its caller. You make the exception with `new`, as in `throw new ArgumentException("...")`.

Where the book teaches it

Related terms

ExceptionCommon exception typestry