Understanding Errors And Exception Flashcards

1
Q

What are five types of errors?

A

Exception
Throw and Catch
The Call Stack
Terminating and Non-terminating Errors
Swallowing an Exception

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

What is an exception?

A

Like an event which gets created when a normal error handling can’t handle the issue

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

What is a Throw and Catch error?

A

Happens when an exception occurs or thrown, to handle the exception you must catch it

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

What is a Call Stack error?

A

List of functions called by each other that led up to, and after, the exception

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

What is a Terminating and Non-terminating errors?

A

An exception is caught or terminates the current execution

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

What is swallowing an error?

A

When you catch an error and it disappears

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

What is the difference between errors and exceptions

A

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.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly