MCPcopy Create free account
hub / github.com/MiniZinc/MiniZincIDE / rcvErrorResponse

Method rcvErrorResponse

MiniZincIDE/moocsubmission.cpp:478–493  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

476}
477
478void MOOCSubmission::rcvErrorResponse(QNetworkReply::NetworkError e)
479{
480 switch (e) {
481 case QNetworkReply::ProtocolInvalidOperationError:
482 case QNetworkReply::AuthenticationRequiredError:
483 // ProtocolInvalidOperationError expected when checking auth succeeds
484 // AuthenticationRequiredError expected when checking auth fails
485 break;
486 default:
487 // Unknown networking error
488 // TODO: can probably remove this check since it should be covered by the ProtocolInvalidOperationError
489 if (!reply->errorString().endsWith("Bad Request")) {
490 ui->textBrowser->insertPlainText("Error:\n" + reply->errorString() + "\n\n");
491 }
492 }
493}
494
495void MOOCSubmission::on_storePassword_toggled(bool checked)
496{

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected