Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Why is DokanException internal? #30

Closed
ghost opened this issue Oct 8, 2015 · 3 comments
Closed

Why is DokanException internal? #30

ghost opened this issue Oct 8, 2015 · 3 comments

Comments

@ghost
Copy link

ghost commented Oct 8, 2015

I'd like to throw in the constructor of my filesystem if the file I'm loading can't be found (e.g. to mount a tar file).

@Liryna
Copy link
Member

Liryna commented Oct 8, 2015

I don't really understand, could you give a example ?

@ghost
Copy link
Author

ghost commented Oct 8, 2015

public class Operations : IDokanOperations
        public Operations(string TarFile)
        {
            if (!File.Exists(TarFile))
            {
                throw new DokanException(...);
            }
...

Instead I can throw from the mounter exe, it doesn't change much - just wondering.

@Liryna
Copy link
Member

Liryna commented Oct 8, 2015

Ok I see !
I don't this is the purpose of DokanException to be used like in your exemple.
It is only used in case the C part of dokan have failed.

@Liryna Liryna closed this as completed Oct 10, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant