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