InternalThrowIfNecessary method

void InternalThrowIfNecessary()
method that throws a ServiceResponseException if this response has its Result property set to Error.

Implementation

void InternalThrowIfNecessary() {
  if (Result == ServiceResult.Error) {
    throw ServiceResponseException(this);
  }
}