p2p.wrox.com Forums

Need to download code?

View our list of code downloads.


  Return to Index  

asp_components thread: Error Handling


Message #1 by Norberto Goussies <norberto.goussies@c...> on Fri, 9 Mar 2001 15:12:10 -0300
Hello,

	I want to know if there is a way to use the object err of ASP in a

component COM, like with the Response, Request, etc....

Thanks

Message #2 by "Luis Abreu" <luisabreu@n...> on Fri, 9 Mar 2001 20:34:40 -0000
Don't really know if this is what you want, but if you're developing your

components using ATL, you can always catch error through _com_error object.

try

{

  m_spResponse->Write(....);

....

}

catch( _com_error& error )

{

	//error.Description() contains a description of the error

	//error.Error() contains the error code

}



Luis Abreu

-----Mensagem original-----

De: Norberto Goussies [mailto:norberto.goussies@c...]

Enviada: sexta-feira, 9 de Março de 2001 18:12

Para: ASP components

Assunto: [asp_components] Error Handling





Hello,

	I want to know if there is a way to use the object err of ASP in a

component COM, like with the Response, Request, etc....

Thanks




  Return to Index