Bummer! You have been redirected as the page you requested could not be found.
Heads up! To view this whole video, sign in with your Courses account or enroll in your free 7-day trial. Sign In Enroll
Well done!
You have completed C# Objects!
You have completed C# Objects!
Preview
Storing a message in the exception object is one way to add information to the exception.
This video doesn't have any notes.
Related Discussions
Have questions about this video? Start a discussion with the community and Treehouse staff.
Sign upRelated Discussions
Have questions about this video? Start a discussion with the community and Treehouse staff.
Sign up
how to resolve the issue, or
0:00
we may be able to use the information
to try to resolve it on our own.
0:00
Exceptions often happen as
a result of programming mistakes.
0:05
In that case, exceptions are used
to communicate to the programmer
0:09
that there's a bug that needs to be fixed.
0:13
In any case,
0:15
it's best to provide as much information
about what may have caused the problem.
0:16
There are a number of ways we can add
additional information to exceptions.
0:21
One way we can communicate what happened,
0:27
is by passing a message to
the exceptions constructor.
0:29
You need to sign up for Treehouse in order to download course files.
Sign upYou need to sign up for Treehouse in order to set up Workspace
Sign up