Try/en: Porovnání verzí

Z Wiki
Přejít na: navigace, hledání
(Založena nová stránka s textem „Type Number“)
 
(Není zobrazeno 14 mezilehlých verzí od stejného uživatele.)
Řádek 9: Řádek 9:
 
'''Block for catching errors.'''
 
'''Block for catching errors.'''
  
Runs a command block. If an error occurs, it sets the output parameters with information about the error, runs the commands in the catch section and, if necessary, depending on the value of [[#retrycount-|RetryCount]], it will try to run the block repeatedly. Finally, it runs the command block in the finally section.
+
Runs a block of commands. If an error occurs, it sets the output parameters with information about the error, runs the commands in the catch section and, if necessary, depending on the value of [[#retrycount-|RetryCount]], it will try to run the block repeatedly. Finally, it runs the command block in the finally section.
  
 
== Input parameters ==
 
== Input parameters ==
Řádek 18: Řádek 18:
 
Type [[Special:MyLanguage/Data types#Number | Number]]
 
Type [[Special:MyLanguage/Data types#Number | Number]]
  
Maximální počet pokusů o znovuspuštění bloku try.
+
Maximum number of tries to run the block.
  
 
=== Enabled ===
 
=== Enabled ===
  
Typ [[Special:MyLanguage/Datové typy#Number | Number]]
+
Type [[Special:MyLanguage/Data types#Number | Number]]
  
Povoluje nebo zakazuje příkaz. Při hodnotě 0 nebude příkaz proveden.
+
Enables or disables the command. If the value is 0, the command will not execute.
  
 
=== PreWait ===
 
=== PreWait ===
  
Typ [[Special:MyLanguage/Datové typy#Number | Number]]
+
Type [[Special:MyLanguage/Data types#Number | Number]]
  
Prodleva v milisekundách před provedením příkazu. Nemá žádný vliv je-li Enabled=0.
+
Delay in milliseconds before executing the command. It has no effect if Enabled=0.
  
 
=== PostWait ===
 
=== PostWait ===
  
Typ [[Special:MyLanguage/Datové typy#Number | Number]]
+
Type [[Special:MyLanguage/Data types#Number | Number]]
  
Prodleva v milisekundách po provedení příkazu. Nemá žádný vliv je-li Enabled=0.
+
Delay in milliseconds before executing the command. It has no effect if Enabled=0.
  
== Výstupní parametry ==
+
== Output parameters ==
  
 
=== Error ===
 
=== Error ===
  
Typ [[Special:MyLanguage/Datové typy#Number | Number]]
+
Type [[Special:MyLanguage/Data types#Number | Number]]
  
Kód chyby, která se vyskytla v bloku try nebo 0, pokud k chybě nedošlo.
+
Code of the error that occurred in the try block or 0 if no error occurred.
  
=== ErrorMessage ===
+
Type [[Special:MyLanguage/Data types#String | String]]
Typ [[Datové typy#String | String]]
 
  
Text chyby, která se vyskytla v bloku try.
+
Text of the error that occurred in the try block.
  
 
=== FailedCommand ===
 
=== FailedCommand ===
  
Typ [[Special:MyLanguage/Datové typy#String | String]]
+
Type [[Special:MyLanguage/Data types#String | String]]
  
Název příkazu z bloku try, který skončil chybou.
+
Name of the command in the try block that ended in error.
  
 
=== FailedCommandId ===
 
=== FailedCommandId ===

Aktuální verze z 1. 2. 2021, 19:06

Jiné jazyky:
English • ‎čeština

Description

Alias: TRY

Block for catching errors.

Runs a block of commands. If an error occurs, it sets the output parameters with information about the error, runs the commands in the catch section and, if necessary, depending on the value of RetryCount, it will try to run the block repeatedly. Finally, it runs the command block in the finally section.

Input parameters

RetryCount

Type Number

Maximum number of tries to run the block.

Enabled

Type Number

Enables or disables the command. If the value is 0, the command will not execute.

PreWait

Type Number

Delay in milliseconds before executing the command. It has no effect if Enabled=0.

PostWait

Type Number

Delay in milliseconds before executing the command. It has no effect if Enabled=0.

Output parameters

Error

Type Number

Code of the error that occurred in the try block or 0 if no error occurred.

Type String

Text of the error that occurred in the try block.

FailedCommand

Type String

Name of the command in the try block that ended in error.

FailedCommandId

Typ String

Identifikátor příkazu z bloku try, který skončil chybou.

SourceError

Typ Number

Kód původní chyby, která se vyskytla během vykonávání bloku try nebo 0, pokud k žádné chybě nedošlo.

SourceErrorMessage

Typ String

Text původní chyby, která se vyskytla během vykonávání bloku try.

FailedSourceCommand

Typ String

Název příkazu, který chybu vyvolal.

FailedSourceCommandId

Typ String

Identifikátor příkazu, který chybu vyvolal.