get a list of all notebooks
| 910 | |
| 911 | // get a list of all notebooks |
| 912 | bool CommunicationManager::getNotebookList(QList<Notebook> &list) { |
| 913 | QList<Notebook> retval; |
| 914 | try { |
| 915 | retval = noteStore->listNotebooks(authToken); |
| 916 | list = retval; |
| 917 | } catch (ThriftException e) { |
| 918 | QLOG_ERROR() << "ThriftException:"; |
| 919 | QLOG_ERROR() << "Exception Type:" << e.type(); |
| 920 | QLOG_ERROR() << "Exception Msg:" << e.what(); |
| 921 | error.type = CommunicationError::ThriftException; |
| 922 | error.message = errorWhat(e.what()); |
| 923 | return false; |
| 924 | } catch (EDAMUserException e) { |
| 925 | QLOG_ERROR() << "EDAMUserException:" << e.errorCode << endl; |
| 926 | error.type = CommunicationError::EDAMUserException; |
| 927 | error.message = errorWhat(e.what()); |
| 928 | error.code = e.errorCode; |
| 929 | return false; |
| 930 | } catch (EDAMSystemException e) { |
| 931 | QLOG_ERROR() << "EDAMSystemException"; |
| 932 | handleEDAMSystemException(e); |
| 933 | return false; |
| 934 | } catch (EDAMNotFoundException e) { |
| 935 | QLOG_ERROR() << "EDAMNotFoundException"; |
| 936 | handleEDAMNotFoundException(e); |
| 937 | return false; |
| 938 | } |
| 939 | return true; |
| 940 | } |
| 941 | |
| 942 | |
| 943 |
nothing calls this directly
no test coverage detected