Skip to main content

Exceptions Reference

All exception classes in the MZpack API. Every MZpack exception inherits from StrategyException, which extends the standard System.Exception.

Hierarchy

Exception
└── StrategyException (abstract)
├── StrategyPrepareException
├── DecisionTreeException (abstract)
│ ├── DecisionTreeInvalidStructureException
│ ├── DecisionTreeSignalChartRangeIsNullException
│ └── DecisionTreeSignalChartRangeIsInvalidException
└── ExportException (abstract)
├── DataExportDuplicatedIndValueException
├── DataExportColumnNotFoundException
├── DataExportNoHandlerForIndValueException
├── DataExportNoChartObjectDescriptorException
├── DataExportNoHandlerForCustomValueException
├── DataExportEmptyPipelineException
└── DataExportGranularityException

Exception
└── DataExportNullArgumentsException

Strategy Exceptions

Namespace: MZpack.NT8.Algo

ClassBaseWhen Thrown
StrategyExceptionExceptionAbstract base for all MZpack strategy exceptions
StrategyPrepareExceptionStrategyExceptionStrategy preparation fails (e.g., missing indicators, invalid configuration)

StrategyPrepareException message format: "Strategy prepare error. {details}"

Decision Tree Exceptions

Namespace: MZpack.NT8.Algo

ClassBaseWhen Thrown
DecisionTreeExceptionStrategyExceptionAbstract base for decision tree validation errors
DecisionTreeInvalidStructureExceptionDecisionTreeExceptionDecision tree has structural issues (e.g., empty root, invalid node arrangement)
DecisionTreeSignalChartRangeIsNullExceptionDecisionTreeExceptionSignal's ChartRange was not assigned in OnCalculate() while using tree range validation
DecisionTreeSignalChartRangeIsInvalidExceptionDecisionTreeExceptionSignal's ChartRange is invalid (e.g., out of bounds) while using tree range validation

Message formats:

  • "Invalid structure of the decision tree. {details}"
  • "Chart range of validated signal/filter is null. {details}"
  • "Chart range of validated signal/filter is invalid. {details}"

Export Exceptions

Namespace: MZpack.NT8.Algo.DataExport

ClassBaseWhen Thrown
ExportExceptionStrategyExceptionAbstract base for data export errors
DataExportNullArgumentsExceptionStrategyExceptionExportArgs is null
DataExportDuplicatedIndValueExceptionExportExceptionSame IndValue added to schema twice
DataExportColumnNotFoundExceptionExportExceptionReferenced column name not found in schema
DataExportNoHandlerForIndValueExceptionExportExceptionNo handler registered for the specified IndValue in the indicator
DataExportNoChartObjectDescriptorExceptionExportExceptionValueDescriptor with DrawingObject source has no ChartObjectDescriptor
DataExportNoHandlerForCustomValueExceptionExportExceptionValueDescriptor with Calculate source has no delegate assigned
DataExportEmptyPipelineExceptionExportExceptionPipeline.Init() called with no exports added
DataExportGranularityExceptionExportExceptionUnsupported ExportGranularity for the data source

Message formats:

  • "Null export arguments"
  • "Duplicated indicator value '{indValue}'"
  • "Colum not found '{column}'" (typo preserved from source)
  • "No handler for indicator value '{indValue}'"
  • "No descriptor for chart object defined"
  • "No handler for custom value '{name}'"
  • "Data export pipeline is empty"
  • "Granularity {granularity} not supported for the export."