OneNote 2007 COM Error Code – HRESULTS
Awhile ago I posted the Beta2 COM Error codes and I thought I would post the final OneNote 2007 COM Error codes & HRESULTS:
Error |
HRESULT |
hrMalformedXML |
0x80042000 |
hrInvalidXML |
0x80042001 |
hrCreatingSection |
0x80042002 |
hrOpeningSection |
0x80042003 |
hrSectionDoesNotExist |
0x80042004 |
hrPageDoesNotExist |
0x80042005 |
hrFileDoesNotExist |
0x80042006 |
hrInsertingImage |
0x80042007 |
hrInsertingInk |
0x80042008 |
hrInsertingHtml |
0x80042009 |
hrNavigatingToPage |
0x8004200a |
hrSectionReadOnly |
0x8004200b |
hrPageReadOnly |
0x8004200c |
hrInsertingOutlineText |
0x8004200d |
hrPageObjectDoesNotExist |
0x8004200e |
hrBinaryObjectDoesNotExist |
0x8004200f |
hrLastModifiedDateDidNotMatch |
0x80042010 |
hrGroupDoesNotExist |
0x80042011 |
hrPageDoesNotExistInGroup |
0x80042012 |
hrNoActiveSelection |
0x80042013 |
hrObjectDoesNotExist |
0x80042014 |
hrNotebookDoesNotExist |
0x80042015 |
hrInsertingFile |
0x80042016 |
hrInvalidName |
0x80042017 |
hrFolderDoesNotExist |
0x80042018 |
hrInvalidQuery |
0x80042019 |
hrFileAlreadyExists |
0x8004201a |
hrSectionEncryptedAndLocked |
0x8004201b |
hrDisabledByPolicy |
0x8004201c |
hrNotYetSynchronized |
0x8004201d |
hrLegacySection |
0x8004201e |
Sometime in the near future I will post more information about what these mean.
Comments
Anonymous
December 07, 2006
Are there any planned changes so that instead of throwin a COMException a OneNoteException is thrown instead? I'm envisioning having to put an OneNoteExceptionToString() routine in all my code currently.Anonymous
December 07, 2006
No there are no plans to change this since we are using COM we need to support HRESULTS and that is it. If someone made a nice little class that would be nice though you would have to use these codes.