ServiceResponse.withError constructor
ServiceResponse.withError(
- ServiceError responseCode,
- String errorMessage
Implementation
ServiceResponse.withError(ServiceError responseCode, String errorMessage) {
this._result = ServiceResult.Error;
this._errorCode = responseCode;
this._errorMessage = errorMessage;
this._errorDetails = null;
}