Optionalerror: unknownThe error message as a string, an Error object, or a value to assign to the cause
property of the returned PlatformError object
Optionalcode: PlatformErrorCodeOptional machine-readable error code. See PlatformErrorCode.
A new PlatformError object
Creates a new PlatformError object. If no argument is provided, a PlatformError object with an empty
messageis returned.