Creates a new instance of Exception. The nextInChain parameter is used internally and should always be null when passed by user code. This constructor does not automatically throw the newly-created Exception; the throw statement should be used for that purpose.
Actual type of casted component
Expected casting type.
Identity of offending component.
A special function used to print customized message using built-in properties, with as less as possible allocations.
It is thrown when a factory detects that fetched object from DI container cannot be casted to required interface/class that should be passed to newly constructed object.