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...
|
Type | Type [get] |
| Type for which a builder was sought.
|
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.
◆ UnableToCreateDynamicBuilderException()
PeanutButter.RandomGenerators.UnableToCreateDynamicBuilderException.UnableToCreateDynamicBuilderException |
( |
Type | type, |
|
|
TypeLoadException | typeLoadException ) |
Constructs a new instasnce of the exception.
- Parameters
-
type | Type for which the runtime was attempting to generate a builder |
typeLoadException | The 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