dokan-java icon indicating copy to clipboard operation
dokan-java copied to clipboard

Reduce all exceptions to DokanyException only?

Open hrstoyanov opened this issue 5 years ago • 1 comments

What if we eliminate LibraryNotFoundException, MountFailedException, UnmountFailedException and just use DokanyException - they are all essentially the same? This would shrink the dokan-java API surface further, but would probably need to be a major new version, as it is not backward compatible..

hrstoyanov avatar Jan 28 '20 19:01 hrstoyanov

I'll agree with you, that the exceptions need a refactoring.

I like the suggestion made in this SO post to create an own exception class and either wrap all occuring exceptions or extend from this base class. Especially in the second case the developer can catch more specific exceptions if they want to, or just catch the generic one.

infeo avatar May 21 '20 16:05 infeo