Adding DocumentIdException and TypeNotSupported.