protected void examineStatusCode ( int code , String message ) throws WebDAVException { if ( code >= 300 && code <= 399 ) throw new RedirectionException ( code , message ) ; if ( code >= 400 && code <= 499 ) throw new ClientException ( code , message ) ; if ( code >= 500 && code <= 599 ) throw new ServerException ( code , message ) ; }
Check the given status code and throw a WebDAV exception if the code indicates failure . If the code is success this method does nothing .