ServiceResponse.withError constructor

ServiceResponse.withError(
  1. ServiceError responseCode,
  2. String errorMessage
)
Initializes a new instance of the Response code Detailed error message

Implementation

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