Hi,

I believe it's similar as in a success case, you use e.getTarget() to get
the request object and you can just use the getResponse or getResponseText
methods.

Cheers


2013/5/3 Tobias Koller (GERMO GmbH) <[email protected]>

>  Here are additional info how I call the webservice…****
>
> ** **
>
>   var req = new qx.io.request.Xhr(url).set({****
>
>                    method: method,****
>
>                    async : false,****
>
>                    timeout: 20000****
>
>                });****
>
>                req.setAuthentication(newqx.io.request.authentication.Basic(
> this.getUsername(), this.getPassword()));****
>
> ** **
>
>                req.setRequestHeader("X-GERMO-No-Auth-Header", "1"); //damit
> bei unautherized kein Browser-Login kommt****
>
> ** **
>
>                if (jsonString != null && jsonString != "") {****
>
>                    req.setRequestHeader("Content-Type", "application/json"
> );****
>
>                    req.setRequestData(jsonString);****
>
>                }****
>
> ** **
>
> ** **
>
> ** **
>
> Tobi****
>
> ** **
>
> *Von:* Tobias Koller (GERMO GmbH) [mailto:[email protected]]
> *Gesendet:* Freitag, 3. Mai 2013 09:56
> *An:* [email protected]
> *Betreff:* [qooxdoo-devel] How to get Responsetext when exception occurs
> during remote-call?****
>
> ** **
>
> Hi,****
>
>  ****
>
> within my qooxdoo 2.1.1 app I call webservices to get some data from the
> server.****
>
>  ****
>
> How can I access the responsetext when an exception occurs?****
>
>  ****
>
> ****
>
>  ****
>
> I want to display this message to the user.****
>
>  ****
>
> This is the event-listener where the exception gets caught.****
>
>  ****
>
> req.addListener("fail", function (e) {****
>
> exception = e;****
>
> }, this);****
>
>  ****
>
>  ****
>
> This is the exception-object-type:****
>
> qx.event.type.Event[14-0] { $$hash="14-0" , $$initialized= true , _type= 
> "fail"
> , more...}****
>
>  ****
>
>  ****
>
>  ****
>
> Thanks****
>
> Tobi****
>
>  ****
>
>  ****
>
>
> ------------------------------------------------------------------------------
> Get 100% visibility into Java/.NET code with AppDynamics Lite
> It's a free troubleshooting tool designed for production
> Get down to code-level detail for bottlenecks, with <2% overhead.
> Download for free and get started troubleshooting in minutes.
> http://p.sf.net/sfu/appdyn_d2d_ap2
> _______________________________________________
> qooxdoo-devel mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel
>
>


-- 
Román Jiménez de Andrés

<<image001.jpg>>

------------------------------------------------------------------------------
Get 100% visibility into Java/.NET code with AppDynamics Lite
It's a free troubleshooting tool designed for production
Get down to code-level detail for bottlenecks, with <2% overhead.
Download for free and get started troubleshooting in minutes.
http://p.sf.net/sfu/appdyn_d2d_ap2
_______________________________________________
qooxdoo-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel

Reply via email to