adding exceptions into documentation