This documentation is archived and is not being maintained.

CodeDomSerializerException Class

The exception that is thrown when line number information is available for a serialization error.

For a list of all members of this type, see CodeDomSerializerException Members.


[Visual Basic]
Public Class CodeDomSerializerException
   Inherits SystemException
public class CodeDomSerializerException : SystemException
public __gc class CodeDomSerializerException : public
public class CodeDomSerializerException extends SystemException

Thread Safety

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.


This exception is thrown when the serializer encounters an error. This exception allows the serializer to return information about the location and type of the error.


[Visual Basic, C#, C++] The following code example throws a CodeDomSerializerException with an example message and a CodeLinePragma.

[Visual Basic] 
Throw New CodeDomSerializerException("This exception was raised as an example.", New CodeLinePragma("Example.txt", 20))

throw new CodeDomSerializerException("This exception was raised as an example.", new CodeLinePragma("Example.txt", 20));            

throw new CodeDomSerializerException(S"This exception was raised as an example.", new CodeLinePragma(S"Example.txt", 20));

[JScript] No example is available for JScript. To view a Visual Basic, C#, or C++ example, click the Language Filter button Language Filter in the upper-left corner of the page.


Namespace: System.ComponentModel.Design.Serialization

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

Assembly: System.Design (in System.Design.dll)

See Also

CodeDomSerializerException Members | System.ComponentModel.Design.Serialization Namespace