Pretty much any type of exception can occur so catch 'em all
This commit is contained in:
parent
ae97752d9c
commit
fe78852b26
|
@ -192,20 +192,8 @@ namespace de4dot.cui {
|
||||||
catch (BadImageFormatException) {
|
catch (BadImageFormatException) {
|
||||||
return false; // Not a .NET file
|
return false; // Not a .NET file
|
||||||
}
|
}
|
||||||
catch (ArgumentOutOfRangeException) {
|
catch (Exception ex) {
|
||||||
Log.w("Could not load file (argument out of range): {0}", file.Filename);
|
Log.w("Could not load file ({0}): {1}", ex.GetType(), file.Filename);
|
||||||
return false;
|
|
||||||
}
|
|
||||||
catch (UnauthorizedAccessException) {
|
|
||||||
Log.w("Could not load file (not authorized): {0}", file.Filename);
|
|
||||||
return false;
|
|
||||||
}
|
|
||||||
catch (NullReferenceException) {
|
|
||||||
Log.w("Could not load file (null ref): {0}", file.Filename);
|
|
||||||
return false;
|
|
||||||
}
|
|
||||||
catch (IOException) {
|
|
||||||
Log.w("Could not load file (io exception): {0}", file.Filename);
|
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user