Nu am putut găsi această intrare. Se afișează rezultate aproximative. Verificați ortografia sau propuneți adăugarea acestui termen în dicționar.
有効なエラー処理ルーチン
エラー処理ルーチンが有効
An error occurs in a procedure that doesn't include an enabled error handler.
有効なエラー処理ルーチンがないプロシージャでエラーが発生した。
When execution passes to an enabled error handler, that error handler becomes active.
実行の制御が有効なエラー処理ルーチンに渡されると、そのエラー処理ルーチンがアクティブになります。
If you've included a statement to regenerate the original error, then execution passes back up the calls list to another enabled error handler, if one exists.
When an error occurs in a nested procedure that doesn't have an enabled error handler, Visual Basic searches backward through the calls list for an enabled error handler in another procedure, rather than simply halting execution.
If an error occurs in Procedure C and there's no enabled error handler, Visual Basic checks Procedure B, then Procedure A, for an enabled error handler.
プロシージャ C でエラーが発生し、有効なエラー処理ルーチンがない場合は、Visual Basic では有効なエラー処理ルーチンがあるかどうかについてプロシージャ B をチェックし、次にプロシージャ A をチェックします。
To illustrate this concept in another way, suppose that you have a nested procedure that includes error handling for a type mismatch error, an error which you have some point, a division-by-zero error, which you have not anticipated, occurs within Procedure C. If you have included a statement to regenerate the original error, then execution passes back up the calls list to another enabled error handler, if one exists. If you have corrected for a division-by-zero error in another procedure in the calls list, then the error will be corrected. If your code does not regenerate the error, then the procedure continues to run without correcting the division-by-zero error. This in turn may cause other errors within the set of nested procedures.
この概念を別の視点から理解するために、予期された型の不一致エラーを処理するためのエラー処理ルーチンが含まれるネストされたプロシージャがあると仮定します。プロシージャ C 内のあるところで、予期しなかった 0 での除算エラーが発生するとします。元のエラーを再度発生させるステートメントを含めた場合は、呼び出しリストが検索され、実行の制御は、別の有効なエラー処理ルーチンがあれば、それに渡されます。呼び出しリスト内の別のプロシージャで 0 での除算エラーを修正すると、そのエラーは発生しなくなります。コードでエラーが再度発生しない場合は、0 での除算エラーが修正されないままプロシージャの実行が続けられます。その結果、ネストされたプロシージャのグループ内で別のエラーが発生することがあります。
For example, suppose Procedure C has an enabled error handler, but the error handler doesn't correct for the error that has occurred.
たとえば、プロシージャ C のエラー処理ルーチンが有効でも、発生したエラーを処理できないとします。
For example, suppose Procedure C has an enabled error handler, but the error handler doesn't correct for the error that has occurred. Once the error handler has checked for all the errors that you've anticipated, it can regenerate the original error. Execution then passes back up the calls list to the error handler in Procedure B, if one exists, providing an opportunity for this error handler to correct the error. If no error handler exists in Procedure B, or if it fails to correct for the error and regenerates it again, then execution passes to the error handler in Procedure A, assuming one exists.
たとえば、プロシージャ C のエラー処理ルーチンが有効でも、発生したエラーを処理できないとします。この場合、予期していたすべてのエラーをエラー処理ルーチンがチェックした後も、元のエラーが再度発生します。その結果、プロシージャ B にエラー処理ルーチンがあると、実行の制御は、呼び出しリスト内の次のプロシージャ B に渡され、このエラー処理ルーチンがエラーを修正します。プロシージャ B にエラー処理ルーチンがない場合、またはエラーを修正できず、そのエラーが再度発生する場合は、実行の制御は、プロシージャ A にエラー処理ルーチンがあれば、そのエラー処理ルーチンに渡されます。
In summary, Visual Basic searches back up the calls list for an enabled error handler if
When an error occurs in a nested procedure that doesn't have an enabled error handler, Visual Basic searches backward through the calls list for an enabled error handler in another procedure, rather than simply halting execution. This provides your code with an opportunity to correct the error within another procedure. For example, suppose Procedure A calls Procedure B, and Procedure B calls Procedure C. If an error occurs in Procedure C and there's no enabled error handler, Visual Basic checks Procedure B, then Procedure A, for an enabled error handler. If one exists, execution passes to that error handler. If not, execution halts and an error message is displayed.
有効なエラー処理ルーチンがないネストされたプロシージャでエラーが発生すると、Visual Basic では、単純に実行を停止する代わりに、呼び出しリストを逆向きにたどり、ほかのプロシージャの有効なエラー処理ルーチンを検索します。これによって、ほかのプロシージャでエラーを修正する機会が得られます。たとえば、プロシージャ A がプロシージャ B を呼び出し、プロシージャ B がプロシージャ C を呼び出すとします。プロシージャ C でエラーが発生し、有効なエラー処理ルーチンがない場合は、Visual Basic では有効なエラー処理ルーチンがあるかどうかについてプロシージャ B をチェックし、次にプロシージャ A をチェックします。有効なエラー処理ルーチンがある場合は、そのエラー処理ルーチンに実行の制御が渡されます。有効なエラー処理ルーチンがない場合は、実行が停止され、エラー メッセージが表示されます。
Conținut posibil inadecvat
Exemplele au rolul de a te ajuta să traduci cuvinte sau expresii corect si adaptat la context. Nu sunt selectate sau validate manual, așadar pot conține termeni inadecvați. Te rugăm să raportezi exemplele pe care le consideri inadecvate. Traducerile vulgare sau colocviale sunt în general marcate cu roșu sau cu portocaliu.