InstanceValidationError
Description
Used by validateInstance function. The constructor of this error receives an IntanceRef parameter and the supposedInstance. The error is instanciated when the supposedInstance isn't an instance of InstanceRef. The InstanceRef parameter refers to a class constructor.
Parameters
InstanceRef: Function (class constructor)
supposedInstance: *