throw an exception
throwing an exception
Should TryFoo ever throw an exception ? Events not listed throw an exception . Approach5例外を投げる とミニマルテストがキャッチする。 Approach 5 throws an exception , which will be caught and reported by the Minimal testing facility. If not, throw an exception . Which part of throwing an Exception is expensive? Combinations with other parts of speech
Assert_exception()コマンドが例外を投げる 事をテストする。 Assert_exception() assert that a command throws an exception . And if it is not, throw an exception . So, there are possibilities for this code throwing an exception . クライアントかサーバエラーが発生したため例外を投げる 。 Throw an exception if a client or server error occurred….Objective-c/cocoaに例外を投げる 。 Throwing an exception in objective-c/cocoa.Authorizing Or Throwing Exceptions . Throwing exceptions out of a destructor.Throw is used to throw an exception .If that file does not exist, I have thrown an exception . If not, you would throw the exception . If not, an exception will be thrown . If not, it throws an exception . アルゴリズムが"例外を投げる "と定義されていれば、アルゴリズムの実行は終了し、結果を何も返さない。 If an algorithm is defined to“throw an exception ”, execution of the algorithm is terminated and no result is returned. ご覧の通りにauthorizeメソッドはコード1行でアクションを認可し、例外を投げる ための便利で手っ取り早い方法です。 As you can see, the authorize method is a convenient, fast way to authorize an action or throw an exception with a single line of code. これは例外を投げる コマンドのテストを行う場合に使うことができる。 This can be used to assert that a command throws an exception . Max_forwards:この設定はsymfonyが例外を投げる 前に許容されるフォワードの最大回数をコントロールします。 Max_forwards: This settings controls the number of forwards allowed before symfony throws an exception . Timeoutドライバーがデータベースからの応答が戻らない場合に、ドライバーが例外を投げる までの最大待機時間(単位:秒)を設定します。 Timeout This sets the number of seconds the driver will wait for the database to return from a request, before throwing an exception . Timeoutドライバーがデータベースからの応答が戻らない場合に、ドライバーが例外を投げる までの最大待機時間を設定します。 Timeout This sets the maximum number of seconds the driver will wait for the database to return from a request, before throwing an exception . 例外を投げる ときは、expressionで例外の値を指定します。When you throw an exception , expression specifies the value of the exception. . このため、DとC++の境界を越えるように例外を投げる コードは、正しく動作しないと思われます。 Throwing exceptions across the boundaries between D and C++ code will likely not work. 例例:オブジェクトを投げる例外を投げる ときにオブジェクトを指定することができます。 Examples Throw an object You can specify an object when you throw an exception . 強い例外保証を可能とするために、ユーザ定義されたムーブコンストラクタは例外を投げる べきではありません。 To make strong exception guarantee possible, user-defined move constructors should not throw exceptions . 上述の代替案として、Errorモジュールを使って例外を投げる 方を好むかもしれません。 As an alternative to the above, you may prefer to throw exceptions using the Error module. しかし、これを実装するとkeyが存在しない時に例外を投げる 必要がある。 But this would require the implementor to throw an exception when the key is absent.
Display more examples
Results: 29 ,
Time: 0.0158