![]() ![]() ![]() |
void CCFXRequest::ThrowException(LPCSTR lpszError, LPCSTR lpszDiagnostics)
Throws an exception and ends processing of this request. You should call this function when you encounter an error that does not allow you to continue processing the request. Note that this function is almost always combined with the ReThrowException member function to provide protection against resource leaks in extension code.
Short identifier for error.
Error diagnostic information.
The following example throws an exception indicating that an unexpected error occurred while processing the request:
char buffError[512] ; wsprintf( buffError, "Unexpected Windows NT error number %ld " "occurred while processing request.", GetLastError() ) ; pRequest->ThrowException( "Error occurred", buffError ) ;
![]() ![]() ![]() |
AllaireDoc@allaire.com
Copyright © 1998, Allaire Corporation. All rights reserved.