During this process an error can occur, because of this you need to handle any potential error.