Difference between revisions of "GVThrowException"
(Created page with "==Description== GVThrowException element stops the Flow with an exception. =={{GVESB}} Configuration== The element GVThrowException is used in a GVEndNode and allows to st...") |
|||
(One intermediate revision by one other user not shown) | |||
Line 9: | Line 9: | ||
Exceptions are allowed only of type '''it.greenvulcano.gvesb.buffer.GVException''' and its subclasses. | Exceptions are allowed only of type '''it.greenvulcano.gvesb.buffer.GVException''' and its subclasses. | ||
− | The exception-id | + | The GVThrowException@exception-id or ExceptionParam@value attributes can contain placeholders to be replaced with fields of the [[GVBuffer]] extracted from the execution environment. The parameters are always written in ${param} format. |
− | The possible | + | The possible placeholders are: |
+ | for [[GVBuffer]] fields: | ||
+ | * ${system} | ||
+ | * ${service} | ||
+ | * ${id} | ||
+ | * ${retCode} | ||
+ | for [[GVBuffer]] properties: | ||
+ | * ${property[<name>]} | ||
− | + | All placeholders are written in accordance with the above format. | |
− | + | If an error occurs the placeholders will not be replaced. | |
− | |||
− | |||
− | |||
− | |||
− | + | The GVThrowException Element is used by: [[GVEndNode]]. | |
− | |||
− | |||
− | |||
− | |||
− | |||
The following table shows the GVThrowException element's attributes: | The following table shows the GVThrowException element's attributes: | ||
{|class="gvtable" | {|class="gvtable" | ||
Line 34: | Line 32: | ||
|- | |- | ||
| class || optional || Exception class. | | class || optional || Exception class. | ||
− | Exceptions are allowed only of type '''it.greenvulcano.gvesb.buffer.GVException''' and its subclass. | + | Exceptions are allowed only of type '''it.greenvulcano.gvesb.buffer.GVException''' and its subclass.<br/> |
The attribute's default value is: it.greenvulcano.gvesb.core.exc.GVCoreException. | The attribute's default value is: it.greenvulcano.gvesb.core.exc.GVCoreException. | ||
|} | |} |
Latest revision as of 14:35, 11 September 2013
Description
GVThrowException element stops the Flow with an exception.
GreenVulcano® ESB Configuration
The element GVThrowException is used in a GVEndNode and allows to stop the workflow of GreenVulcano® ESB with exception.
Exceptions are allowed only of type it.greenvulcano.gvesb.buffer.GVException and its subclasses.
The GVThrowException@exception-id or ExceptionParam@value attributes can contain placeholders to be replaced with fields of the GVBuffer extracted from the execution environment. The parameters are always written in ${param} format.
The possible placeholders are: for GVBuffer fields:
- ${system}
- ${service}
- ${id}
- ${retCode}
for GVBuffer properties:
- ${property[<name>]}
All placeholders are written in accordance with the above format. If an error occurs the placeholders will not be replaced.
The GVThrowException Element is used by: GVEndNode.
The following table shows the GVThrowException element's attributes:
Attribute | Type | Description |
---|---|---|
exception-id | required | ID of the exception. |
class | optional | Exception class.
Exceptions are allowed only of type it.greenvulcano.gvesb.buffer.GVException and its subclass. |
Might contain the sub-elements:
- Description
- ExceptionParam
ExceptionParam
This element specifies parameters to pass to the exception message.
The following table shows the ExceptionParam element's attributes:
Attribute | Type | Description |
---|---|---|
name | required | Parameter name. |
value | required | Parameter value. |
Might contain the sub-element Description.