tidyup usage of PlatformApiDataValidationException constructor.