Re: How to determine which IOException occured?



There is not something like error code in IOException. If you want to
differentiate such cases, you may need to check prior to copying:
- to check if the file already exists, you could use File.Exist
- user does not have rights: it throws UnauthorizedAccessException. If
you mean Code Access permission, then it throws SecurityException.
- being used by other process: if the file is locked to not allow
writing, you could still read and copy it
If that does not help, then you may need to call Windows API directly.
---
Thi

.



Relevant Pages

  • Re: make kernel error
    ... >> can you give me some pointers ... and built world prior to make kernel. ... *** Error code 1 ...
    (freebsd-stable)
  • RE: Make buildworld fail due to sendmail/sasl installation.
    ... Well my last copying the header files all over the place apparently helped ... *** Error code 1 ... Not using the integral sendmail ...
    (freebsd-questions)
  • Re: Why cant I upgrade?
    ... broadcast on comp.unix.bsd.freebsd.misc: ... Source upgrades from versions prior to 5.3 not supported. ... *** Error code 1 ...
    (comp.unix.bsd.freebsd.misc)
  • FreeBSD 6.1 source upgrade: Error code 1
    ... syntax error at source line 1 ... Source upgrades from versions prior to 5.3 not supported. ... *** Error code 1 ... This is a source upgrade of FreeBSD 6.1 and not a prior version to 5.3. ...
    (freebsd-questions)
  • errors during buildworld
    ... I am attempting to run 'make buildworld' using the FreeBSD 6.0-BETA5 source, ... prior to this I completely removed and re-created /usr/src and /usr/obj and ... *** Error code 2 ...
    (freebsd-current)

Loading