{"id":10010,"date":"2026-01-09T11:37:01","date_gmt":"2026-01-09T02:37:01","guid":{"rendered":"https:\/\/www.auctionpro.co.kr\/?p=10010"},"modified":"2026-01-14T11:34:05","modified_gmt":"2026-01-14T02:34:05","slug":"on-error-resume-next","status":"publish","type":"post","link":"https:\/\/www.auctionpro.co.kr\/?p=10010","title":{"rendered":"On Error Resume Next"},"content":{"rendered":"\n<h3 class=\"wp-block-heading\">\u2705 \uc62c\ubc14\ub978 \ud328\ud134 (\uc5d0\ub7ec \ubc94\uc704 \uc81c\ud55c)<\/h3>\n\n\n\n<div class=\"wp-block-urvanov-syntax-highlighter-code-block\"><pre class=\"lang:c# decode:true \">On Error Resume Next\n\ndbCon.Execute SQL\n\nIf Err.Number &lt;&gt; 0 Then\n   ' DB \uc624\ub958 \ucc98\ub9ac\nEnd If\n\nOn Error GoTo 0   ' \u2705 \uc5ec\uae30\uc11c \uc815\uc0c1 \ubcf5\uadc0<\/pre><\/div>\n\n\n\n<p class=\"wp-block-paragraph\">\u27a1\ufe0f <strong>DB \uc2e4\ud589 \uad6c\uac04\uc5d0\uc11c\ub9cc \uc624\ub958 \ubb34\uc2dc<\/strong><br>\u27a1\ufe0f \uc774\ud6c4 \ub85c\uc9c1\uc740 \uc815\uc0c1\uc801\uc73c\ub85c \uc624\ub958 \uac10\uc9c0<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">\ud83e\udde0 \ub0b4\ubd80\uc801\uc73c\ub85c \ubb34\uc2a8 \uc77c\uc774 \uc77c\uc5b4\ub098\ub098?<\/h2>\n\n\n\n<figure class=\"wp-block-table\"><table class=\"has-fixed-layout\"><thead><tr><th>\uba85\ub839<\/th><th>\ub0b4\ubd80 \uc0c1\ud0dc<\/th><\/tr><\/thead><tbody><tr><td><code>On Error Resume Next<\/code><\/td><td>\uc5d0\ub7ec \ubc1c\uc0dd \u2192 Err \uac1d\uccb4\uc5d0 \uc800\uc7a5, \uc2e4\ud589 \uacc4\uc18d<\/td><\/tr><tr><td><code>On Error GoTo 0<\/code><\/td><td>\uc5d0\ub7ec \ubc1c\uc0dd \u2192 \uc989\uc2dc \uc911\ub2e8, ASP \uc624\ub958 \ud398\uc774\uc9c0<\/td><\/tr><\/tbody><\/table><\/figure>\n\n\n\n<blockquote class=\"wp-block-quote is-layout-flow wp-block-quote-is-layout-flow\">\n<p class=\"wp-block-paragraph\">\u26a0\ufe0f \uc22b\uc790 <code>0<\/code>\uc740 \u201c\uc5d0\ub7ec \ucc98\ub9ac\uae30\ub97c \uc0ac\uc6a9\ud558\uc9c0 \uc54a\ub294\ub2e4\u201d\ub294 \uc758\ubbf8\uc774\uc9c0<br>GoTo \ubb38\ucc98\ub7fc \uc5b4\ub518\uac00\ub85c \uc774\ub3d9\ud558\ub294 \uac8c \uc544\ub2d9\ub2c8\ub2e4.<\/p>\n<\/blockquote>\n\n\n\n<h2 class=\"wp-block-heading\">\u2705 \uc2e4\ubb34 \ubca0\uc2a4\ud2b8 \ud328\ud134 (\ucd94\ucc9c)<\/h2>\n\n\n\n<div class=\"wp-block-urvanov-syntax-highlighter-code-block\"><pre class=\"lang:c# decode:true \">On Error Resume Next\nErr.Clear\n\ndbCon.Execute SQL\n\nIf Err.Number &lt;&gt; 0 Then\n    msg = Err.Description\n    Err.Clear\n    On Error GoTo 0\n    Response.Write \"&lt;script&gt;alert('DB \uc624\ub958 \ubc1c\uc0dd');&lt;\/script&gt;\"\n    Response.End\nEnd If\n\nOn Error GoTo 0<\/pre><\/div>\n\n\n\n<p class=\"wp-block-paragraph\">Classic ASP\uc5d0\uc11c <strong>try\/catch\ucc98\ub7fc \u201c\uad6c\uac04(scope)\uc744 \ub531 \uc798\ub77c\u201d \uc548\uc804\ud558\uac8c \uc4f0\ub294 \uc2e4\ubb34 \ud328\ud134<\/strong>\ub4e4\uc785\ub2c8\ub2e4. \ud575\uc2ec\uc740 <strong><code>On Error Resume Next<\/code>\ub97c \ucd5c\uc18c \ubc94\uc704\ub85c\ub9cc \ucf30\ub2e4\uac00, \ubc18\ub4dc\uc2dc <code>On Error GoTo 0<\/code>\uc73c\ub85c \ubcf5\uad6c<\/strong>\ud558\ub294 \uac81\ub2c8\ub2e4.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">\uc5ec\ub7ec \uc704\ud5d8 \uad6c\uac04\uc774 \uc788\ub294 \uacbd\uc6b0 (\uc5ec\ub7ec \ubc88 \uc0ac\uc6a9)<\/h2>\n\n\n\n<blockquote class=\"wp-block-quote is-layout-flow wp-block-quote-is-layout-flow\">\n<p class=\"wp-block-paragraph\"><strong>Resume Next \u2192 GoTo 0 \ub97c \uc138\ud2b8\ub85c \ubc18\ubcf5<\/strong><\/p>\n<\/blockquote>\n\n\n\n<div class=\"wp-block-urvanov-syntax-highlighter-code-block\"><pre class=\"lang:c# decode:true \" >&lt;%\n' === \uc704\ud5d8 \uad6c\uac04 1 ===\nOn Error Resume Next\n\nSet obj1 = Server.CreateObject(\"Not.Exist.Object\")\n\nIf Err.Number &lt;&gt; 0 Then\n    Response.Write \"Object1 \uc0dd\uc131 \uc2e4\ud328&lt;br&gt;\"\n    Err.Clear\nEnd If\n\nOn Error GoTo 0\n\n\n' === \uc704\ud5d8 \uad6c\uac04 2 ===\nOn Error Resume Next\n\nDim x\nx = CInt(\"ABC\")   ' \ud0c0\uc785 \ubcc0\ud658 \uc624\ub958\n\nIf Err.Number &lt;&gt; 0 Then\n    Response.Write \"\ud615 \ubcc0\ud658 \uc624\ub958&lt;br&gt;\"\n    Err.Clear\nEnd If\n\nOn Error GoTo 0\n\n\n' === \uc704\ud5d8 \uad6c\uac04 3 ===\nOn Error Resume Next\n\nDim y\ny = 100 \/ 0\n\nIf Err.Number &lt;&gt; 0 Then\n    Response.Write \"\ub098\ub217\uc148 \uc624\ub958&lt;br&gt;\"\n    Err.Clear\nEnd If\n\nOn Error GoTo 0\n\nResponse.Write \"\ubaa8\ub4e0 \uad6c\uac04 \ucc98\ub9ac \uc644\ub8cc&lt;br&gt;\"\n%&gt;\n<\/pre><\/div>\n","protected":false},"excerpt":{"rendered":"<div class=\"mh-excerpt\"><p>\u2705 \uc62c\ubc14\ub978 \ud328\ud134 (\uc5d0\ub7ec \ubc94\uc704 \uc81c\ud55c) \u27a1\ufe0f DB \uc2e4\ud589 \uad6c\uac04\uc5d0\uc11c\ub9cc \uc624\ub958 \ubb34\uc2dc\u27a1\ufe0f \uc774\ud6c4 \ub85c\uc9c1\uc740 \uc815\uc0c1\uc801\uc73c\ub85c \uc624\ub958 \uac10\uc9c0 \ud83e\udde0 \ub0b4\ubd80\uc801\uc73c\ub85c \ubb34\uc2a8 \uc77c\uc774 \uc77c\uc5b4\ub098\ub098? \uba85\ub839 \ub0b4\ubd80 \uc0c1\ud0dc <a class=\"mh-excerpt-more\" href=\"https:\/\/www.auctionpro.co.kr\/?p=10010\" title=\"On Error Resume Next\">[&#8230;]<\/a><\/p>\n<\/div>","protected":false},"author":6,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_jetpack_memberships_contains_paid_content":false,"footnotes":""},"categories":[33],"tags":[],"class_list":["post-10010","post","type-post","status-publish","format-standard","hentry","category-asp"],"jetpack_featured_media_url":"","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/www.auctionpro.co.kr\/index.php?rest_route=\/wp\/v2\/posts\/10010","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.auctionpro.co.kr\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.auctionpro.co.kr\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.auctionpro.co.kr\/index.php?rest_route=\/wp\/v2\/users\/6"}],"replies":[{"embeddable":true,"href":"https:\/\/www.auctionpro.co.kr\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=10010"}],"version-history":[{"count":0,"href":"https:\/\/www.auctionpro.co.kr\/index.php?rest_route=\/wp\/v2\/posts\/10010\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.auctionpro.co.kr\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=10010"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.auctionpro.co.kr\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=10010"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.auctionpro.co.kr\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=10010"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}