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) {
  _result = ServiceResult.Error;
  _errorCode = responseCode;
  _errorMessage = errorMessage;
  _errorDetails = null;
}