Location: Symbol Reference > Functions > JwRaiseOnClassTypeMisMatch Function
JWSCL Documentation
ContentsIndexHome
PreviousUpNext
JwRaiseOnClassTypeMisMatch Function
Pascal
procedure JwRaiseOnClassTypeMisMatch(const Instance: TObject; const ExpectedClass: TClass; const MethodName: TJwString; const ClassName: TJwString; const FileName: TJwString);
Parameters 
Description 
const Instance: TObject 
defines the class to be tested. If this parameter is nil, the procedure exists without harm.  
const ExpectedClass: TClass 
defines the class type to be checked for.  
const MethodName: TJwString 
defines the name of the method this parameter belongs to  
const ClassName: TJwString 
defines the name of the class the method belongs to. Can be empty if the method does not belong to a class  
const FileName: TJwString 
defines the source file of the call to this procedure. 

JwRaiseOnClassTypeMisMatch raises an exception EJwsclClassTypeMismatch if parameter Instance is not of type ExpectedClass. This function is like Assert but it will not be removed in a release build. 

 

Exceptions 
Description 
will be raised if P is nil 
Copyright (c) 2010. All rights reserved.
This help was created by Doc-O-Matic sponsored by toolsfactory software inc.
What do you think about this topic? Send feedback!