Creates a failed ServiceResult containing a ServiceError.
ServiceResult
ServiceError
The type of the success value
The parameters to create the ServiceError
A ServiceResult containing the error
Creates a failed
ServiceResult
containing aServiceError
.