In any development process, errors are something that you cannot avoid, no matter how competent and thorough you are when writing your code.

As a WordPress developer, it is your job to make sure any of your code errors are being handled correctly without affecting the end user. WordPress is shipped with a basic error handling class, namely WP_Error that can be used and integrated into your code for basic error handling.