-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Feature/17600 exceptions 2024.3 (#127)
Exception Improvements
- Loading branch information
Showing
7 changed files
with
244 additions
and
12 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
--- | ||
title: "Xml" | ||
linkTitle: "Xml" | ||
description: "Exceptions related to Xml blocks." | ||
description: "Exceptions related to Xml" | ||
--- |
105 changes: 98 additions & 7 deletions
105
content/en/docs/2024.3/Reference/Exceptions/Xml/xml-serialization-exception.md
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,22 +1,113 @@ | ||
--- | ||
title: "XmlSerializationException" | ||
linkTitle: "XmlSerializationException" | ||
description: "The exception thrown when an Xml Serialization errors occur." | ||
description: "The exception thrown when an error occurs when serializing or deserializing XML." | ||
--- | ||
|
||
|
||
# {{% param title %}} | ||
|
||
<p class="namespace">(Cortex.Exceptions.Xml.XmlSerializationException)</p> | ||
{{% alert type="information" title="Information" %}}Improvements to this page are planned for the future.{{% /alert %}} | ||
|
||
## Description | ||
|
||
The exception thrown when an error occurs when serializing or deserializing XML. | ||
|
||
## Reasons | ||
|
||
### Invalid Structure {#structure} | ||
|
||
The [Structure][ConvertStructureToXml Structure Property] provided to the [Convert Structure To Xml][ConvertStructureToXml] block is invalid. | ||
|
||
#### Message Format | ||
|
||
The format of the message can be one of the following: | ||
|
||
```json | ||
"Invalid 'Structure' provided. The 'Structure' has been provided an empty key that could not be converted to valid xml. | ||
Please click the HelpLink for more information on how to fix this." | ||
``` | ||
|
||
or | ||
|
||
```json | ||
"Invalid 'Structure' provided. The 'Structure' has been provided a key that could not be converted to valid xml. | ||
Please click the HelpLink for more information on how to fix this." | ||
``` | ||
|
||
or | ||
|
||
```json | ||
"Invalid 'Structure' provided. The 'Structure' has been provided an xml declaration key with an attribute value that could not be converted to valid xml. | ||
Please click the HelpLink for more information on how to fix this." | ||
``` | ||
|
||
or | ||
|
||
```json | ||
"Invalid 'Structure' provided. The 'Structure' has been provided a document type definition key with an attribute value that could not be converted to valid xml. | ||
Please click the HelpLink for more information on how to fix this." | ||
``` | ||
|
||
or | ||
|
||
```json | ||
"Invalid 'Structure' provided. The 'Structure' has been provided an attribute key with a value that could not be converted to valid xml. | ||
Please click the HelpLink for more information on how to fix this." | ||
``` | ||
|
||
#### How to fix | ||
|
||
TODO: The exception thrown when... | ||
* Ensure that all keys in the structure provided are not empty (i.e. `""`). The path to the specific key which threw this exception can be seen in the `Key` property (e.g. `"firstItem."` indicates that the empty key is a child of a top level item that has the key `"firstItem"`). If a top level item has an empty key (i.e. `""`), then the `Key` property will also be empty (i.e. `""`). | ||
* Ensure that the XML declaration key (i.e. `"?xml"`) and document type definition key (i.e. `"!DOCTYPE"`) in the structure provided only have valid attributes: | ||
* XML declaration key: `"@version"`, `"@encoding"` and `"@standalone"` | ||
* Document type definition key: `"@name"`, `"@public"`, `"@system"` and `"@internalSubset"` | ||
|
||
The format of the exception message is as follows: | ||
The path to the specific key which threw this exception can be seen in the `Key` property. | ||
* Ensure that all child attribute keys of the XML declaration item, in the structure provided, have values with a valid [Basic Data Type][BasicDataTypes] (e.g. the child attribute key `"@version"`, requires a numeric value like `1.0` or `1.1`, so a value of `false` is invalid). | ||
* Ensure that all child attribute keys of the document type definition item, in the structure provided, have values with a valid [Basic Data Type][BasicDataTypes] (e.g. the child attribute key `"@name"`, requires a text value like `"exampleName"`, so a value of `22` is invalid). | ||
* Ensure that all attribute keys in the structure provided have values which are not a [Complex Data Type][ComplexDataTypes]. The path to the specific key which threw this exception can be seen in the `Key` property. | ||
|
||
### Invalid XML {#xml} | ||
|
||
The [XML][ConvertXmlToStructure XML Property] provided to the [Convert Xml to Structure][ConvertXmlToStructure] block is invalid. | ||
|
||
#### Message Format | ||
|
||
The format of the message is as follows: | ||
|
||
```json | ||
TODO: Format | ||
"Invalid 'Xml' provided. The 'Xml' provided is not valid xml. | ||
Please click the HelpLink for more information on how to fix this." | ||
``` | ||
|
||
## How to fix | ||
#### How to fix | ||
|
||
Ensure that the [XML][ConvertXmlToStructure XML Property] provided is [valid XML][XmlValidator]. See the `Message` of the `InnerException` property for more information. | ||
|
||
## Remarks | ||
|
||
### Known Limitations | ||
|
||
None | ||
|
||
## See Also | ||
|
||
### External Documentation | ||
|
||
* [XML Validator][XmlValidator] | ||
|
||
[Structure]: {{<url path = "Cortex.Reference.DataTypes.Collections.Structure.MainDoc">}} | ||
|
||
[ConvertStructureToXml]: {{<url path = "Cortex.Reference.Blocks.Xml.ConvertXml.ConvertStructureToXml.MainDoc">}} | ||
[ConvertStructureToXml Structure Property]: {{<url path = "Cortex.Reference.Blocks.Xml.ConvertXml.ConvertStructureToXml.Structure">}} | ||
|
||
[ConvertXmlToStructure]: {{<url path = "Cortex.Reference.Blocks.Xml.ConvertXml.ConvertXmlToStructure.MainDoc">}} | ||
[ConvertXmlToStructure XML Property]: {{<url path = "Cortex.Reference.Blocks.Xml.ConvertXml.ConvertXmlToStructure.Xml">}} | ||
|
||
[XmlNodes]: {{<url path = "W3.XmlNodes">}} | ||
|
||
[BasicDataTypes]: {{<url path = "Cortex.Reference.Concepts.Fundamentals.DataTypes.WhatIsADataType.BasicDataTypes">}} | ||
[ComplexDataTypes]: {{<url path = "Cortex.Reference.Concepts.Fundamentals.DataTypes.WhatIsADataType.ComplexDataTypes">}} | ||
|
||
TODO: How to fix... | ||
[XmlValidator]: {{<url path = "JsonFormatter.XmlValidator">}} |
46 changes: 46 additions & 0 deletions
46
...4.3/Reference/Exceptions/flows/execution/output-port-not-connected-exception.md
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,46 @@ | ||
--- | ||
title: "OutputPortNotConnectedException" | ||
linkTitle: "OutputPortNotConnectedException" | ||
description: "The exception thrown when an execution tries to go through an output port which is not connected." | ||
--- | ||
|
||
# {{% param title %}} | ||
|
||
<p class="namespace">(Cortex.Exceptions.Flows.Execution.OutputPortNotConnectedException)</p> | ||
{{% alert type="information" title="Information" %}}Improvements to this page are planned for the future.{{% /alert %}} | ||
|
||
## Description | ||
|
||
The exception thrown when an execution tries to go through an [output port][Block Connections] which is not connected. | ||
|
||
## Reasons | ||
|
||
### Output port not connected | ||
|
||
The [output port][Block Connections] of a block in a flow is not connected to another block. | ||
|
||
#### Message Format | ||
|
||
The format of the message is as follows: | ||
|
||
```json | ||
"Block output port isn't connected." | ||
``` | ||
|
||
#### How to fix | ||
|
||
Ensure that the block that threw this exception has its output port connected to another block; see [Block Connections][] for more information. | ||
|
||
## Remarks | ||
|
||
### Known Limitations | ||
|
||
None | ||
|
||
## See Also | ||
|
||
### External Documentation | ||
|
||
None | ||
|
||
[Block Connections]: {{<url path = "Cortex.Reference.Concepts.Fundamentals.Blocks.WhatIsABlock.BlockConnections">}} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
--- | ||
title: "Text" | ||
linkTitle: "Text" | ||
description: "Exceptions related to Text blocks" | ||
description: "Exceptions related to Text" | ||
--- |
87 changes: 87 additions & 0 deletions
87
content/en/docs/2024.3/Reference/Exceptions/text/format-exception.md
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,87 @@ | ||
--- | ||
title: "FormatException" | ||
linkTitle: "FormatException" | ||
description: "The exception thrown when a format template string is invalid." | ||
--- | ||
|
||
# {{% param title %}} | ||
|
||
<p class="namespace">(Cortex.Exceptions.Text.FormatException)</p> | ||
{{% alert type="information" title="Information" %}}Improvements to this page are planned for the future.{{% /alert %}} | ||
|
||
## Description | ||
|
||
The exception thrown when a format template string is invalid. | ||
|
||
## Reasons | ||
|
||
### Invalid format template | ||
|
||
The [format template][Format Templates] provided could not be parsed. | ||
|
||
#### Message Format | ||
|
||
The format of the message can be one of the following: | ||
|
||
```json | ||
"The largest Format Parameter in '<format-template-property>' is <largest-format-parameter>, therefore, '<values-property>' must contain at least <expected-number-of-values> items, but only contains <number-of-values>. | ||
Text: | ||
<format-template-value> | ||
Values: | ||
<values-value> | ||
Please click the HelpLink for more information on how to fix this." | ||
``` | ||
|
||
or | ||
|
||
```json | ||
"'<format-template-property>' contains at least one Format Parameter larger than {0}, therefore, it cannot be formatted. | ||
Text: | ||
<format-template-value> | ||
Please click the HelpLink for more information on how to fix this." | ||
``` | ||
|
||
or | ||
|
||
```json | ||
"'<format-template-property>' contains negative Format Parameter(s), therefore, it cannot be formatted. | ||
Text: | ||
<format-template-value> | ||
Please click the HelpLink for more information on how to fix this." | ||
``` | ||
|
||
where: | ||
|
||
* `<format-template-property>` is the name of the property containing the format template provided for the block which threw this exception; see [Format Text With Value][Format Text With Value Format Template] or [Format Text With Values][Format Text With Values Format Template] for more information. | ||
* `<format-template-value>` is the value of the format template provided; see [Format Text With Value][Format Text With Value Format Template] or [Format Text With Values][Format Text With Values Format Template] for more information. | ||
* `<largest-format-parameter>` is the value of the largest unique format specifier provided (i.e. if the format template is `"{0} {2} {1} {3}`, this will be `3`). | ||
* `<expected-number-of-values>` is the number of values expected to be provided (i.e. if the format template is `"{0} {2} {1} {3}`, this will be `4`). | ||
* `<values-property>` is the property containing the values provided to insert into the format template. | ||
* `<values-value>` is the list of values provided to insert into the format template. | ||
|
||
#### How to fix | ||
|
||
* Ensure that the list of values provided contains at least `<expected-number-of-values>` values (e.g. for a format template of `"{0} {1} {2} {3} {4}"`, there should be at least `5` values provided). | ||
* Ensure that the format template provided does not have more than 1 format parameter when using the [Format Text With Value][] block. | ||
* Ensure that the format template provided does not contain any negative format specifiers (e.g. `{-1}`, `{-5}`, `{-1000}`, etc). | ||
|
||
## Remarks | ||
|
||
### Known Limitations | ||
|
||
None | ||
|
||
## See Also | ||
|
||
### External Documentation | ||
|
||
None | ||
|
||
[Format Text With Value]: {{<url path = "Cortex.Reference.Blocks.Text.FormatText.FormatTextWithValue.MainDoc">}} | ||
[Format Text With Value Format Template]: {{<url path="Cortex.Reference.Blocks.Text.FormatText.FormatTextWithValue.FormatTemplate">}} | ||
[Format Text With Values]: {{<url path = "Cortex.Reference.Blocks.Text.FormatText.FormatTextWithValues.MainDoc">}} | ||
[Format Text With Values Format Template]: {{<url path = "Cortex.Reference.Blocks.Text.FormatText.FormatTextWithValues.FormatTemplate">}} | ||
|
||
[Working With Text Formatting]: {{<url path = "Cortex.Reference.Concepts.WorkingWith.Text.Formatting.MainDoc">}} | ||
[Format Specifiers]: {{<url path = "Cortex.Reference.Concepts.WorkingWith.Text.Formatting.FormatSpecifiers">}} | ||
[Format Templates]: {{<url path = "Cortex.Reference.Concepts.WorkingWith.Text.Formatting.FormatTemplates">}} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters