Knowledge quiz

It's time to put what you've learned to the test, get 2 right to pass this unit.

1.

How do you create a translatable text for an exception class that can be queried via the get_text( ) method of the exception class when the exception occurs?

Choose the correct answer.
2.

Let cx_super, cx_sub1, cx_sub2, and cx_sub3 be four exception classes, where cx_super is the superclass of the three subclasses cx_sub1, cx_sub2, and cx_sub3. In a TRY statement, you want to catch cx_sub1 explicitly and cx_sub2 and cx_sub3 via their superclass. All other exceptions should be caught with cx_root. What is the correct order of CATCH blocks to implement this behavior?

Choose the correct answer.