MCPcopy Create free account
hub / github.com/baumgarr/nixnote2 / getNote

Method getNote

communication/communicationmanager.cpp:870–896  ·  view source on GitHub ↗

Get a prior version of a notebook

Source from the content-addressed store, hash-verified

868
869// Get a prior version of a notebook
870bool CommunicationManager::getNote(Note &note, QString guid, bool withResource, bool withResourceRecognition, bool withResourceAlternateData) {
871 try {
872 note = noteStore->getNote(guid,true,withResource,withResourceRecognition,withResourceAlternateData,authToken);
873 return true;
874 } catch (ThriftException e) {
875 QLOG_ERROR() << "ThriftException:";
876 QLOG_ERROR() << "Exception Type:" << e.type();
877 QLOG_ERROR() << "Exception Msg:" << e.what();
878 error.type = CommunicationError::ThriftException;
879 error.message = errorWhat(e.what());
880 return false;
881 } catch (EDAMUserException e) {
882 QLOG_ERROR() << "EDAMUserException:" << e.errorCode << endl;
883 error.code = e.errorCode;
884 error.message = errorWhat(e.what());
885 error.type = CommunicationError::EDAMUserException;
886 return false;
887 } catch (EDAMSystemException e) {
888 QLOG_ERROR() << "EDAMSystemException";
889 handleEDAMSystemException(e);
890 return false;
891 } catch (EDAMNotFoundException e) {
892 QLOG_ERROR() << "EDAMNotFoundException";
893 handleEDAMNotFoundException(e);
894 return false;
895 }
896}
897
898
899

Callers 1

processSyncChunkMethod · 0.45

Calls 2

typeMethod · 0.80
whatMethod · 0.45

Tested by

no test coverage detected