adeutscher / DirectoryTools

0 stars 0 forks source link

Add exceptions, remove exit calls #15

Closed adeutscher closed 10 years ago

adeutscher commented 10 years ago

We should not be exiting cold. Any item that calls exit() should instead throw some sort of exception.

adeutscher commented 10 years ago

Exception idea (self-explanatory by name): ExceededMaxDepthException, ConnectionFailedException, badQueryException, propertyNotFoundException

adeutscher commented 10 years ago

Added various exceptions to either eliminate exit() calls or help locate points of failure.

adeutscher commented 10 years ago

This issue solved the initial need for exceptions, further exceptions should be their own ticket or added as part of the ticket for the feature being added.