Table of Contents

Class MappingFailedException

Namespace
Neo4j.Driver.Mapping
Assembly
Neo4j.Driver.dll

The exception that is thrown when the mapping of a record to a target type failed.

public class MappingFailedException : Neo4jException
Inheritance
MappingFailedException
Inherited Members
Extension Methods

Remarks

Common causes include a required record field being absent (use MappingOptionalAttribute or MappingDefaultValueAttribute to make the field optional), a type conversion failure when the field value cannot be converted to the target property type, or a constructor throwing during instantiation.

Inspect InnerException for the underlying cause.

Constructors

MappingFailedException(string)

Initializes a new instance of the MappingFailedException class.

MappingFailedException(string, Exception)

Initializes a new instance of the MappingFailedException class.