Reporting errors to the user

During method execution, it is sometimes necessary to abort the processing because the action that's requested by the user isn't valid or an error condition has been met. This recipe shows you how to manage these cases by showing a helpful error message.

..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset