check what is being thrown