Assume that dataFailure is a variable of type Exception that has been declared and that references an Exception object. Write a statement that throws that Exception object.

Assume that dataFailure is a variable of type Exception that has been declared and that references an Exception object. Write a statement that throws that Exception object.

LANGUAGE: JAVA

CHALLENGE:

Assume that dataFailure is a variable of type Exception that has been declared and that references an Exception object. Write a statement that throws that Exception object.

SOLUTION:

throw dataFailure;

Add comment