Every developer can mistakes, no matter how great they are. sometimes our code have a error. error occur because our mistakes, user given wrong input, an unexpected server response and also have a lot of reason for occur error. How to solve this problem? There are many solution here, one…