Even if you wear an S on your chest, when it comes to programming, errors will undoubtedly creep into your application. These errors are either caused by we the programmers as a result of code error or by the users who are unwilling to conform to the application or website constraints.The errors caused by the end users are usually more adverse than that of the programmer reason because the data or information entered by the user is unpredictable.For example, in an email form field, instead of entering a valid email, the user might enter a non-email text. If the website lack a solid error handling mechanism, the user can gain unauthorized access to sensitive information.Since users behavior can’t be predicted, a website or application can be programmed to out-rightly reject any invalid data entered by the user and inform the user that the data was invalid
Visit site:
WordPress Error Handling with WP_Error Class I