Is there a way I can not show the user any error and/or have my program ignore the error?

Thanks