Αυτό το πρόγραμμα περιήγησης δεν υποστηρίζεται πλέον.
Κάντε αναβάθμιση σε Microsoft Edge για να επωφεληθείτε από τις τελευταίες δυνατότητες, τις ενημερώσεις ασφαλείας και την τεχνική υποστήριξη.
A developer needs to create and throw an exception in a C# application. Which of the following descriptions is correct?
The exception type shouldn't match the intended purpose of the exception.
The exception type that they create depends on the coding issue.
The process for throwing an exception object involves using the catch keyword.
catch
When should a method throw an exception?
A method should throw an exception when the method can complete its intended purpose.
A method should throw an exception when the method can't complete its intended purpose.
A method should throw an exception when an exception type matches the intended purpose of the method.
A developer needs to create an exception object that includes a specific Message property. Which of the following statements is correct?
Message
The Message property of an exception is writable.
The Message property shouldn't explain the reason for the exception.
The Message property should explain the reason for the exception.
You must answer all questions before checking your work.
Ήταν χρήσιμη αυτή η σελίδα;
Χρειάζεστε βοήθεια σχετικά με αυτό το θέμα;
Θέλετε να δοκιμάσετε να χρησιμοποιήσετε την επιλογή Ρωτήστε το Learn για να σας καθοδηγήσει σε αυτό το θέμα;