ã¹ãã¼ããªã¨ã©ã¼å¦ç C++ã§ã¯ãã¨ã©ã¼ã®å¦çã管çæ©è½ã¨ãã¦ä¾å¤å¦ç (Exception) ããµãã¼ãããã¦ãã¾ã ãã®æ©è½ãç¨ãã¦ãå®è¡ä¸ã®äºæãã¬ã¨ã©ã¼ã«åãã¾ã ä¾å¤ã¯ãtry , throw , catch ã®3ã¤ã®ãã¼ã¯ã¼ãã§æ§æããã¾ã ã¾ããä¾å¤ã¯æ示çã«ä¾å¤ãç£è¦ããªããã°ãªãã¾ãã ä¾å¤ãçºçããå¯è½æ§ã®ããããã°ã©ã ã³ã¼ãã try ãããã¯ã¨ã㦠{ } ã§å²ã¿ã¾ã try { //ä¾å¤ãçºçããå¯è½æ§ã®ããããã°ã©ã ã³ã¼ã } try ãããã¯ãªãã§ä¾å¤ãçºçããå ´å catch ã¹ãã¼ãã¡ã³ãã§ãããåãåãã¾ã catch ã¹ãã¼ãã¡ã³ããé©åãªä¾å¤ãåãåããç¨æãããä¾å¤å¦çãè¡ãã¾ã catch (type arg) { //ä¾å¤å¦ç } type arg ã«ã¯ãé¢æ°ã®å®£è¨ã®ããã«åã¨å¤æ°åãæå®ãã¾ã catch ãããã¯ã¯çºçããä¾å¤ãããã®åã¨ä¸
{{#tags}}- {{label}}
{{/tags}}