org.jclouds.blobstore.functions
Class ThrowKeyNotFoundOn404
java.lang.Object
org.jclouds.blobstore.functions.ThrowKeyNotFoundOn404
- All Implemented Interfaces:
- com.google.common.base.Function<Exception,Object>
public class ThrowKeyNotFoundOn404
- 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
NoSuchKey
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 |
ThrowKeyNotFoundOn404
public ThrowKeyNotFoundOn404()
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.