Added try/catch around error classes
Added NotesException