Understanding Errors And Exception Flashcards
What are five types of errors?
Exception
Throw and Catch
The Call Stack
Terminating and Non-terminating Errors
Swallowing an Exception
What is an exception?
Like an event which gets created when a normal error handling can’t handle the issue
What is a Throw and Catch error?
Happens when an exception occurs or thrown, to handle the exception you must catch it
What is a Call Stack error?
List of functions called by each other that led up to, and after, the exception
What is a Terminating and Non-terminating errors?
An exception is caught or terminates the current execution
What is swallowing an error?
When you catch an error and it disappears
What is the difference between errors and exceptions
Errors are returned as PS object and provide terminating and non-terminating errors
Exceptions are created when normal error handling cannot handle the issue. They are typically non-terminating errors.