師æ°ãå±å°çãªä¾å¤ããã¼ãæ©æ復帰ã§è¡¨ç¾ããªãããã©ããããã¨ï¼ããã°ã©ã ã«ã¯ã¡ã¤ã³ããã¼ã1ã¤ããã¾ãããä¾å¤çãªç¶æ³ä¸ã«ããã¦ã¯ããã®ã¡ã¤ã³ããã¼ããé¸è±ãããããã¾ãããã¬ã¼ãæ¡ä»¶ã¯ããã·ã³ãã«ã§å±æçãªä¾å¤ç¶æ³ãã表ç¾ããããã«ãä¾å¤çãªç¶æ³ãçºçããå ´åãæ©æ復帰ãï¼returnï¼ãã¦ãã¡ã¤ã³ããã¼ã«å½±é¿ãä¸ããªãããã«ãã¾ããã©ããã¦ï¼ä¾ãã°ä»¥ä¸ã®ãããª2ã¤ã®å®è£ ãããã¾ãã void initialize() { if (isIntialized()){ // main flow ... }else{ // exception flow ... } } void initialize() { if(isIntialized()){ // exception flow ... return; } // main flow ... } æåã®ãã¼ã¸ã§ã³ãèªãã¨ããã¨ãthenç¯ã
{{#tags}}- {{label}}
{{/tags}}