[Cosmo-dev] caldav4j: more details about exceptions?

Bobby Rullo br at osafoundation.org
Thu Sep 6 14:21:02 PDT 2007


Roberto,

The exception handling code throws a new exception which wraps the  
original exception:

  throw new CalDAV4JException("Trouble executing PUT", e);

So you have access to more detail info via exception.getCause()

As for the etag thing, it looks like we need some sort of utility  
method for getting etags out which checks to see that the Header is  
not null.

bobby

On Sep 5, 2007, at 4:21 AM, Roberto Polli wrote:

> hi all,
>
> putting an event in a folder's folder results in a TROUBLE  
> EXECUTING PUT
> is there a way to return more explicative errors?
>
> I put too the following string
>
> CalDAVCalendarCollection at line 331
> String etag = ( putMethod.getResponseHeader("ETag") != null) ?
> 	putMethod.getResponseHeader("ETag").getValue() :  null; // rpolli
>
> but don't know if it's necessary or not
>
>
>
> tia,
> R.
> -- 
>
> Roberto Polli
> Babel S.r.l. - http://www.babel.it
> Tel. +39.06.91801075 - fax +39.06.91612446
> P.zza S.Benedetto da Norcia, 33 - 00040 Pomezia (Roma)
>
> "Il seguente messaggio contiene informazioni riservate. Qualora questo
> messaggio fosse da Voi ricevuto per errore, Vogliate cortesemente  
> darcene
> notizia a mezzo e-mail. Vi sollecitiamo altresì a distruggere il  
> messaggio
> erroneamente ricevuto. Quanto precede Vi viene chiesto ai fini del  
> rispetto
> della legge in materia di protezione dei dati personali."
> _______________________________________________
> cosmo-dev mailing list
> cosmo-dev at lists.osafoundation.org
> http://lists.osafoundation.org/mailman/listinfo/cosmo-dev

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.osafoundation.org/pipermail/cosmo-dev/attachments/20070906/c48014bb/attachment.html


More information about the cosmo-dev mailing list