Avoids the usage of try-catch everywhere, force user to handle error case.
Transform parameters of a function to handle promise parameters