PeanutButter
Loading...
Searching...
No Matches
PeanutButter.RandomGenerators.UnableToCreateDynamicBuilderException Class Reference

Exception thrown when the PeanutButter runtime is unable to automatically generate a required builder for a type. Happens most often if the type is inaccessible to the PeanutButter runtime. If the type to be built is internal, it is recommended to make internals visible to PeanutButter.RandomGenerators; otherwise the builder cannot be generated and the consuming code will need to provide a builder which, if it is public, will be discovered and used instead of attempting to generate a builder. More...

Inheritance diagram for PeanutButter.RandomGenerators.UnableToCreateDynamicBuilderException:

Public Member Functions

 UnableToCreateDynamicBuilderException (Type type, TypeLoadException typeLoadException)
 Constructs a new instasnce of the exception.

Properties

Type Type [get]
 Type for which a builder was sought.

Detailed Description

Exception thrown when the PeanutButter runtime is unable to automatically generate a required builder for a type. Happens most often if the type is inaccessible to the PeanutButter runtime. If the type to be built is internal, it is recommended to make internals visible to PeanutButter.RandomGenerators; otherwise the builder cannot be generated and the consuming code will need to provide a builder which, if it is public, will be discovered and used instead of attempting to generate a builder.

Constructor & Destructor Documentation

◆ UnableToCreateDynamicBuilderException()

PeanutButter.RandomGenerators.UnableToCreateDynamicBuilderException.UnableToCreateDynamicBuilderException ( Type type,
TypeLoadException typeLoadException )

Constructs a new instasnce of the exception.

Parameters
typeType for which the runtime was attempting to generate a builder
typeLoadExceptionThe actual exception thrown; may assist in resolving the issue

The documentation for this class was generated from the following file:
  • source/TestUtils/PeanutButter.RandomGenerators/UnableToCreateDynamicBuilderException.cs