Derived Exception Classes

HTExceptionEventArg : BaseClass ->System.EventArg

 

Used by some API objects when firing events.

 

Contains our standard HTException interface and 1 public method.

 

Void Cancel(String reasonWhy = "Cancelled") - Call this method and whichever operation raised should cancel the operation and return control back to your program.

 

Example (Visual Basic)

 

HTImportEventArg : BaseClass ->HTExceptionEventArg

 

Used by API objects performing Import Operations when firing events.

 

Contains our standard HTException interface + the HTExceptionEventArg Cancel() method as well as:

 

Public Properties (ReadOnly)

 

Integer BatchIndex - The index of the operation (or 1 if it's a single operation)

Integer BatchCount - The number of operations in the Batch (or 1 if it's a single operation)

Integer PassNumber - The pass number if the operation is iterative (like Training your Schema which may make multiple passes on 1 message)

String AdditionalInfo - Any custom or informational String information which might be passed down from the entity raising the event.

 

Public Properties (Read / Write) For Import Events and Fatal Error Handling

 

Boolean RefreshAndRetry - If set to True the Import Operation will Refresh it's internal UPSInfo class and try and import the HL7 message again.

Boolean RetrainAndRetry - If set to True and all other conditions for retraining are also True the Import Operation will attempt to dynamically train the schema to accept the HL7 message.

 

Example (Visual Basic)

 


 

HTTrainingEventArg : BaseClass ->HTExceptionEventArg

 

Used by API objects performing Training Operations when firing events.

Contains our standard HTException interface + the HTExceptionEventArg Cancel() method as well as:

 

ReadOnly Integer BatchIndex - The index of the operation (or 1 if it's a single operation)

ReadOnly Integer BatchCount - The number of operations in the Batch (or 1 if it's a single operation)

ReadOnly Integer PassNumber - The pass number if the operation is iterative (like Training your Schema which may make multiple passes on 1 message)

ReadOnly String AdditionalInfo - Any custom or informational String information which might be passed down from the entity raising the event.

 

The HTTrainingEventArg is functionally equivalent to the HTImportEventArg. but is only used in Training Operations.

 

 

 


 

 

 

 

© 2015 HermeTech International
(a Division of TransWorld Scribes)