Location: Symbol Reference > Functions > JwRaiseOnNilParameter Function
JWSCL Documentation
ContentsIndexHome
PreviousUpNext
JwRaiseOnNilParameter Function
Pascal
procedure JwRaiseOnNilParameter(const P: Pointer; const ParameterName: TJwString; const MethodName: TJwString; const ClassName: TJwString; const FileName: TJwString);
Parameters 
Description 
const P: Pointer 
defines a pointer to be validated  
const ParameterName: TJwString 
defines the name of the parameter which is validated and belongs to this pointer  
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. 

JwRaiseOnNilParameter raises an exception EJwsclNILParameterException if parameter P is nil; otherwise nothing happens. 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!