^1572418774823
@
sname
Try
slabel
Try
sdescriptors
xworker.lang.MetaDescriptor3
sextends
xworker.lang.actions.SelfAction
smany
true
seditCols
2
sinitialization
false
smodifier
public
sinheritDescription
false
scolor
BLUE
Sdescription
#$@text#$@
<p><strong>语法规则</strong></p>

<pre class="brush:java;">
try{
    childs
    if(actionContext.getStatus() == ActionContext.EXCEPTION){
        catch
    }
}catch(Throwable t){
    catch
}finally{
    finally
}</pre>

<p>&nbsp;&nbsp;&nbsp; try模型同时支持Throw模型和Java的抛出的异常。其中catch和finally是名字对应的子节点，childs是子节点，都会当作动作执行，childs执行时会过滤名为catch和finallyd的节点。</p>

<p><strong>catch匹配所有</strong></p>

<p>&nbsp;&nbsp;&nbsp; catch节点匹配所有的异常和模型的抛出。如果没有定义catch节点，那么会继续向上级抛出。</p>

<p><strong>变量上下文</strong></p>

<p>&nbsp;&nbsp;&nbsp; 会启动一个局部变量上下文的范围。</p>

<p><strong>示例</strong></p>

<ul>
	<li><a href="javascript:invoke('thing:xworker.example.thing.actions.TryCatchDemo')">TryCatchDemo</a></li>
</ul>

<p>&nbsp;</p>
#$@text#$@
snotXmlAttribute
false
sjson_isArray
false
  @/@scripts
  sname
  scripts
  slabel
  scripts
  sdescriptors
  xworker.lang.MetaDescriptor3/@actions
  sid
  scripts
    @/@scripts/@run
    sname
    run
    sisSynchronized
    false
    sthrowException
    true
    suseOtherAction
    false
    suseOuterJava
    true
    souterClassName
    xworker.lang.actions.TryCreator
    sclassName
    Try
    smethodName
    run
    sdisableGlobalContext
    false
    sdescriptors
    xworker.lang.actions.JavaAction
    sid
    run
  @/@ChildAction
  sname
  ChildAction
  sdescriptors
  xworker.lang.MetaDescriptor3/@thing
  sextends
  xworker.lang.actions.Actions
  smany
  true
  seditCols
  2
  sinitialization
  false
  smodifier
  private
  sinheritDescription
  false
  Sdescription
#$@text#$@
<p>Deprecated</p>

<p>While循环中要执行的动作。</p>
#$@text#$@
  snotXmlAttribute
  false
  sjson_isArray
  false
  sth_createIndex
  false
  sid
  ChildAction
  @/@Catch
  sname
  Catch
  sdescriptors
  xworker.lang.MetaDescriptor3/@thing
  sextends
  xworker.lang.actions.Actions
  smany
  true
  seditCols
  2
  sinitialization
  false
  smodifier
  private
  sinheritDescription
  false
  Sdescription
#$@text#$@
<p>Deprecated</p>
#$@text#$@
  snotXmlAttribute
  false
  sjson_isArray
  false
  sid
  Catch
    @/@Catch/@name
    sname
    name
    sreadOnly
    false
    sinheritDescription
    false
    svalidateAllowBlank
    true
    LvalidateOnBlur
    true
    LallowDecimals
    true
    LallowNegative
    true
    sdescriptors
    xworker.lang.MetaDescriptor3/@attribute
    sth_createIndex
    false
    sid
    name
    @/@Catch/@label
    sname
    label
    sreadOnly
    false
    sinheritDescription
    false
    svalidateAllowBlank
    true
    LvalidateOnBlur
    true
    LallowDecimals
    true
    LallowNegative
    true
    sdescriptors
    xworker.lang.MetaDescriptor3/@attribute
    sth_createIndex
    false
    sid
    label
    @/@Catch/@exception
    sname
    exception
    sinputtype
    inputSelect
    ssize
    60
    scolspan
    2
    sdefault
    java.lang.Exception
    sinheritDescription
    false
    sdescription
    需要捕获的异常，如果包含在&quot;&quot;中的字符串，那么按照异常的消息值来判断，否则按照Java异常类来判断。
    LvalidateOnBlur
    false
    LallowDecimals
    false
    LallowNegative
    false
    sdescriptors
    xworker.lang.MetaDescriptor3/@attribute
    sid
    exception
      @/@Catch/@exception/@java_lang_Exception
      sname
      java.lang.Exception
      slabel
      java.lang.Exception
      svalue
      java.lang.Exception
      sdescriptors
      xworker.lang.MetaDescriptor3/@attribute/@value
      sid
      java_lang_Exception
      @/@Catch/@exception/@java_lang_Object
      sname
      java.lang.Object
      slabel
      java.lang.Object
      svalue
      java.lang.Object
      sdescriptors
      xworker.lang.MetaDescriptor3/@attribute/@value
      sid
      java_lang_Object
      @/@Catch/@exception/@java_lang_String
      sname
      java.lang.String
      slabel
      java.lang.String
      svalue
      java.lang.String
      sdescriptors
      xworker.lang.MetaDescriptor3/@attribute/@value
      sid
      java_lang_String
    @/@Catch/@dataName
    sname
    varName
    sshowLabel
    true
    sreadOnly
    false
    sdefault
    e
    sinheritDescription
    false
    sdescription
    Exception存放在变量容器的值。
    svalidateAllowBlank
    true
    LvalidateOnBlur
    false
    LallowDecimals
    false
    LallowNegative
    false
    snotXmlAttribute
    false
    sdescriptors
    xworker.lang.MetaDescriptor3/@attribute
    sid
    dataName
    @/@Catch/@description
    sname
    description
    sinputtype
    html
    scolspan
    2
    sinputattrs
    Width='480';Height='300';ToolbarSet="SwtEdit"
    LvalidateOnBlur
    false
    LallowDecimals
    false
    LallowNegative
    false
    sdescriptors
    xworker.lang.MetaDescriptor3/@attribute
    sid
    description
  @/@Finally
  sname
  Finally
  sdescriptors
  xworker.lang.MetaDescriptor3/@thing
  sextends
  ,xworker.lang.actions.Actions
  smany
  true
  seditCols
  2
  sinitialization
  false
  smodifier
  private
  sinheritDescription
  false
  Sdescription
#$@text#$@
<p>Deprecated</p>
#$@text#$@
  snotXmlAttribute
  false
  sjson_isArray
  false
  sid
  Finally
    @/@Finally/@name
    sname
    name
    sreadOnly
    false
    sinheritDescription
    false
    svalidateAllowBlank
    true
    LvalidateOnBlur
    true
    LallowDecimals
    true
    LallowNegative
    true
    sdescriptors
    xworker.lang.MetaDescriptor3/@attribute
    sth_createIndex
    false
    sid
    name
    @/@Finally/@label
    sname
    label
    sreadOnly
    false
    sinheritDescription
    false
    svalidateAllowBlank
    true
    LvalidateOnBlur
    true
    LallowDecimals
    true
    LallowNegative
    true
    sdescriptors
    xworker.lang.MetaDescriptor3/@attribute
    sth_createIndex
    false
    sid
    label
    @/@Finally/@description
    sname
    description
    sinputtype
    html
    scolspan
    2
    sinputattrs
    Width='480';Height='300';ToolbarSet="SwtEdit"
    LvalidateOnBlur
    false
    LallowDecimals
    false
    LallowNegative
    false
    sdescriptors
    xworker.lang.MetaDescriptor3/@attribute
    sid
    description
  @/@name
  sname
  name
  LvalidateOnBlur
  false
  LallowDecimals
  false
  LallowNegative
  false
  sdescriptors
  xworker.lang.MetaDescriptor3/@attribute
  sid
  name
  @/@label
  sname
  label
  sreadOnly
  false
  sinheritDescription
  false
  svalidateAllowBlank
  true
  LvalidateOnBlur
  true
  LallowDecimals
  true
  LallowNegative
  true
  sdescriptors
  xworker.lang.MetaDescriptor3/@attribute
  sth_createIndex
  false
  sid
  label
  @/@exceptionVarName
  sname
  exceptionVarName
  ssize
  40
  sshowLabel
  true
  slabelAlign
  right
  slabelVAlign
  baseline
  smodifier
  public
  sreadOnly
  false
  sdefault
  e
  sinheritDescription
  false
  svalidateAllowBlank
  true
  LvalidateOnBlur
  true
  LallowDecimals
  true
  LallowNegative
  true
  snotXmlAttribute
  false
  sdescriptors
  xworker.lang.MetaDescriptor3/@attribute
  sth_createIndex
  false
  sth_registMyChilds
  false
  sth_registDisabled
  false
  sth_fileMonitor
  false
  sth_mark
  false
  sid
  exceptionVarName
  @/@description
  sname
  description
  sinputtype
  html
  scolspan
  2
  sinputattrs
  Width='480';Height='300';ToolbarSet="SwtEdit"
  LvalidateOnBlur
  false
  LallowDecimals
  false
  LallowNegative
  false
  sdescriptors
  xworker.lang.MetaDescriptor3/@attribute
  sid
  description
