sulu / sulu-document-manager

Sulu document manager
sulu.io
6 stars 7 forks source link

Added name option #75

Closed dantleech closed 8 years ago

dantleech commented 8 years ago

This PR allows document managers to be identified with a name and any exceptions thrown through the primary API methods will be either wrapped with a DocumentManagerException.

If the Exception is already an instance of DocumentManagerException (f.e. a DocumentNotFoundException) then the document name will be set on that exception itself.

dantleech commented 8 years ago

Note that this is a PR on the existing document_context branch and I will merge it when the tests are green.