Package com.kolich.havalo.exceptions.objects

Examples of com.kolich.havalo.exceptions.objects.ObjectConflictException


              // attempt to delete.  If the If-Match ETag does not
              // match, fail.
              if(ifMatch != null && eTag != null) {
                // OK, we have an incoming If-Match ETag, use it.
                if(!ifMatch.equals(eTag)) {
                  throw new ObjectConflictException("Failed " +
                    "to delete HFO; incoming If-Match " +
                    "ETag does not match (hfo=" +
                    hfo.getName() + ", etag=" +
                    eTag + ", if-match=" + ifMatch + ")");
                }
View Full Code Here


                            // NOTE: HFO's will _always_ have an ETag attached
                            // to their meta-data.  ETag's are always computed
                            // for HFO's upload. But new HFO's (one's the repo
                            // have never seen before) may not yet have an ETag.
                            if(!ifMatch.equals(eTag)) {
                                throw new ObjectConflictException("Failed " +
                                    "to update HFO; incoming If-Match ETag " +
                                    "does not match (hfo=" + hfo.getName() +
                                    ", etag=" + eTag + ", if-match=" +
                                    ifMatch + ")");
                            }
View Full Code Here

TOP

Related Classes of com.kolich.havalo.exceptions.objects.ObjectConflictException

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.