DataDirect XML Converters 5.0 Send comments on this topic.
Error Method
See Also 
DDTek.XmlConverter Namespace > ConverterListener Interface : Error Method




exception
The error information encapsulated in a ConverterException. The actual class may be a subclass of ConverterException, such as EDIConverterException, and as such it may contain more specific information about the error.
Receive notification of a recoverable error.

Syntax

Visual Basic (Declaration) 
Sub Error( _
   ByVal exception As ConverterException _
) 
Visual Basic (Usage)Copy Code
Dim instance As ConverterListener
Dim exception As ConverterException
 
instance.Error(exception)
C# 
void Error( 
   ConverterException exception
)
Managed Extensions for C++ 
void Error( 
   ConverterException* exception
) 
C++/CLI 
void Error( 
   ConverterException^ exception
) 

Parameters

exception
The error information encapsulated in a ConverterException. The actual class may be a subclass of ConverterException, such as EDIConverterException, and as such it may contain more specific information about the error.

Remarks

This method is used to report recoverable errors in the EDI document which could compromise the integrity of the stream. If this method throws an Exception, the Converter will terminate. If this method returns without throwing an Exception, the Converter will continue processing.

Examples of recoverable errors are values that are not in codelists, segments in HL7 that are not in the repository, or elements whose content is too long or too short.

Requirements

Target Platforms: Windows 98, Windows NT 4.0, Windows Millennium Edition, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows Server 2003 family, Windows Vista, Windows Server 2008 family

See Also

© 2009 All Rights Reserved.