org.jclouds.blobstore.functions
Class ThrowContainerNotFoundOn404
java.lang.Object
org.jclouds.blobstore.functions.ThrowContainerNotFoundOn404
- All Implemented Interfaces:
- com.google.common.base.Function<Exception,Object>
public class ThrowContainerNotFoundOn404
- extends Object
- implements com.google.common.base.Function<Exception,Object>
bucketParser
is only enacted when the http status code is 2xx. We check for Amazon's
NoSuchBucket
message and throw a ContainerNotFoundException.
- Author:
- James Murty
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface com.google.common.base.Function |
equals |
ThrowContainerNotFoundOn404
public ThrowContainerNotFoundOn404()
apply
public Object apply(Exception from)
- Specified by:
apply
in interface com.google.common.base.Function<Exception,Object>
Copyright © 2009-2011 jclouds. All Rights Reserved.