Chapter 35: Problem 4
Name two ways that you can specify the error message text for exception objects.
Short Answer
Expert verified
Specify error message text by passing it to the constructor or by setting an attribute in a custom exception class.
Step by step solution
Key Concepts
These are the key concepts you need to understand to accurately answer the question.