Get a prior version of a notebook
| 868 | |
| 869 | // Get a prior version of a notebook |
| 870 | bool CommunicationManager::getNote(Note ¬e, 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 |
no test coverage detected