Skip to content

Instantly share code, notes, and snippets.

@todorok1
Last active Dec 2, 2020
Embed
What would you like to do?
例外を握り潰すパターン
try
{
string num = "one";
int stringNumber = int.Parse(num);
Debug.Log($"変換された値は{stringNumber}でした。");
}
catch (Exception e)
{
// 何もしないで抜けちゃうよー
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment