2017-12-13から1日間の記事一覧

vb.netですべての例外をキャッチ

Try 'ファイルを開く sr = System.IO.File.OpenText(filePath) Catch ex As System.IO.FileNotFoundException System.Console.WriteLine(ex.Message) Return Nothing Catch ex As System.IO.IOException System.Console.WriteLine(ex.Message) Return Nothin…