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.
System.Object
System.Exception
System.SystemException
System.ComponentModel.Design.Serialization.CodeDomSerializerException
[Visual Basic] Public Class CodeDomSerializerException Inherits SystemException [C#] public class CodeDomSerializerException : SystemException [C++] public __gc class CodeDomSerializerException : public SystemException [JScript] 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.
Remarks
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.
Example
[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)) [C#] throw new CodeDomSerializerException("This exception was raised as an example.", new CodeLinePragma("Example.txt", 20)); [C++] 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
in the upper-left corner of the page.
Requirements
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