If there is an IOException it is thrown. For other reasons you should
simply check the status code returned by calling
resource.getStatusCode().

Ingo

> Not trying to be a smart aleck, but how do you check the tomcat console with
> code? I see a number of APIs return boolean instead of possibly throwing an
> exception if something failed or returning an error code for things that can
> reasonably be expected to fail.... can anyone shed some light on the design
> philosophy?
> 
> ----- Original Message ----- 
> From: "Daniel Garnys" <[EMAIL PROTECTED]>
> To: "'Slide Users Mailing List'" <[EMAIL PROTECTED]>
> Sent: Friday, June 25, 2004 4:10 AM
> Subject: RE: mkColMethod
> 
> 
> > Check your tomcat console.
> >
> > -----Original Message-----
> > From: Michael Stover [mailto:[EMAIL PROTECTED]
> > Sent: 24 June 2004 20:59
> > To: Slide Mailing_List
> > Subject: mkColMethod
> >
> >
> > If I call resource.mkColMethod("newDir") and it returns false, how do I
> > go about figuring out why it failed?
> >
> > -- 
> > Michael Stover <[EMAIL PROTECTED]>
> > Apache Software Foundation


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to