Show / Hide Table of Contents

Class DataTypeError

Provides information about data type errors, when converting from CLR types.

Inheritance
System.Object
DataTypeError
Implements
System.Runtime.Serialization.ISerializable
Namespace: Nuqleon.DataModel.TypeSystem
Assembly: Nuqleon.DataModel.CompilerServices.dll
Syntax
public class DataTypeError : Object, ISerializable

Constructors

DataTypeError(SerializationInfo, StreamingContext)

Creates a new data type error object from serialization information.

Declaration
protected DataTypeError(SerializationInfo info, StreamingContext context)
Parameters
Type Name Description
System.Runtime.Serialization.SerializationInfo info

Serialization information.

System.Runtime.Serialization.StreamingContext context

Streaming context.

Properties

Message

Gets the error message explaining why the CLR type is not compliant with the data model.

Declaration
public string Message { get; }
Property Value
Type Description
System.String

Stack

Gets the stack of types at the point the error was raised. This information can help to understand how the composition of an invalid data model type resulted in an error for another type.

Declaration
public ReadOnlyCollection<Type> Stack { get; }
Property Value
Type Description
System.Collections.ObjectModel.ReadOnlyCollection<System.Type>

Type

Gets the CLR type that is not compliant with the data model.

Declaration
public Type Type { get; }
Property Value
Type Description
System.Type

Methods

GetObjectData(SerializationInfo, StreamingContext)

Serializes the object instance to the specified serialization info object.

Declaration
protected virtual void GetObjectData(SerializationInfo info, StreamingContext context)
Parameters
Type Name Description
System.Runtime.Serialization.SerializationInfo info

Serialization info.

System.Runtime.Serialization.StreamingContext context

Streaming context.

ToException()

Returns an exception to signal the error.

Declaration
public Exception ToException()
Returns
Type Description
System.Exception

Exception representing the error.

ToString()

Returns a string representation of the error.

Declaration
public override string ToString()
Returns
Type Description
System.String

String representation of the error.

Implements

System.Runtime.Serialization.ISerializable
In This Article
Back to top Generated by DocFX