Create provider errors and use them