Implemented Assert for Errors and use that to handle erros if required.