Tabnine Logo
ServiceException.getCause
Code IndexAdd Tabnine to your IDE (free)

How to use
getCause
method
in
org.jets3t.service.ServiceException

Best Java code snippets using org.jets3t.service.ServiceException.getCause (Showing top 12 results out of 315)

origin: ch.cern.hadoop/hadoop-aws

private void handleServiceException(ServiceException e) throws IOException {
  if (e.getCause() instanceof IOException) {
   throw (IOException) e.getCause();
  }
  else {
   if(LOG.isDebugEnabled()) {
    LOG.debug("Got ServiceException with Error code: " + e.getErrorCode() + ";and Error message: " + e.getErrorMessage());
   }
  }
 }
origin: io.druid.extensions/druid-s3-extensions

public static boolean isServiceExceptionRecoverable(ServiceException ex)
{
 final boolean isIOException = ex.getCause() instanceof IOException;
 final boolean isTimeout = "RequestTimeout".equals(((ServiceException) ex).getErrorCode());
 return isIOException || isTimeout;
}
origin: io.druid.extensions/druid-s3-extensions

 @Override
 public InputStream openStream() throws IOException
 {
  try {
   return buildFileObject(uri, s3Client).openInputStream();
  }
  catch (ServiceException e) {
   if (e.getCause() != null) {
    if (S3Utils.S3RETRY.apply(e)) {
     throw new IOException("Recoverable exception", e);
    }
   }
   throw Throwables.propagate(e);
  }
 }
};
origin: net.java.dev.jets3t/jets3t

if(e.getCause() instanceof IOException && ioErrorRetryCount < 5) {
  ioErrorRetryCount++;
  if(log.isWarnEnabled()) {
origin: org.apache.servicemix.bundles/org.apache.servicemix.bundles.jets3t

if(e.getCause() instanceof IOException && ioErrorRetryCount < 5) {
  ioErrorRetryCount++;
  if(log.isWarnEnabled()) {
origin: net.java.dev.jets3t/jets3t

  ioErrorRetryCount = 0;
} catch (ServiceException se) {
  if (se.getCause() instanceof IOException && ioErrorRetryCount < 5) {
    ioErrorRetryCount++;
    if (log.isWarnEnabled()) {
origin: net.java.dev.jets3t/jets3t

  ioErrorRetryCount = 0;
} catch (ServiceException e) {
  if (e.getCause() instanceof IOException
    && ioErrorRetryCount < ioErrorRetryMaxCount)
origin: org.apache.servicemix.bundles/org.apache.servicemix.bundles.jets3t

  ioErrorRetryCount = 0;
} catch (ServiceException se) {
  if (se.getCause() instanceof IOException && ioErrorRetryCount < 5) {
    ioErrorRetryCount++;
    if (log.isWarnEnabled()) {
origin: org.apache.servicemix.bundles/org.apache.servicemix.bundles.jets3t

  ioErrorRetryCount = 0;
} catch (ServiceException e) {
  if (e.getCause() instanceof IOException
    && ioErrorRetryCount < ioErrorRetryMaxCount)
origin: iterate-ch/cyberduck

@Override
public BackgroundException map(final ServiceException e) {
  if(e.getCause() instanceof ServiceException) {
    return this.map((ServiceException) e.getCause());
  if(e.getCause() instanceof IOException) {
    return new DefaultIOExceptionMappingService().map((IOException) e.getCause());
  if(e.getCause() instanceof SAXException) {
    return new InteroperabilityException(buffer.toString(), e);
origin: net.java.dev.jets3t/jets3t

/**
 * Wrap a ServiceException as an S3ServiceException.
 * @param se
 */
public S3ServiceException(ServiceException se) {
  super(se.getMessage(), se.getXmlMessage(), se.getCause());
  this.setResponseHeaders(se.getResponseHeaders());
  this.setResponseCode(se.getResponseCode());
  this.setResponseStatus(se.getResponseStatus());
  this.setResponseDate(se.getResponseDate());
  this.setRequestVerb(se.getRequestVerb());
  this.setRequestPath(se.getRequestPath());
  this.setRequestHost(se.getRequestHost());
}
origin: org.apache.servicemix.bundles/org.apache.servicemix.bundles.jets3t

/**
 * Wrap a ServiceException as an S3ServiceException.
 * @param se
 */
public S3ServiceException(ServiceException se) {
  super(se.getMessage(), se.getXmlMessage(), se.getCause());
  this.setResponseHeaders(se.getResponseHeaders());
  this.setResponseCode(se.getResponseCode());
  this.setResponseStatus(se.getResponseStatus());
  this.setResponseDate(se.getResponseDate());
  this.setRequestVerb(se.getRequestVerb());
  this.setRequestPath(se.getRequestPath());
  this.setRequestHost(se.getRequestHost());
}
org.jets3t.serviceServiceExceptiongetCause

Popular methods of ServiceException

  • getMessage
  • getErrorCode
  • getErrorMessage
  • <init>
    Create a service exception that includes an underlying cause exception.
  • getResponseCode
  • getResponseHeaders
  • getResponseStatus
  • printStackTrace
  • setErrorCode
    Set the exception's error code; for internal use only.
  • setErrorMessage
    Set the exception's error message; for internal use only.
  • findXmlElementText
  • getRequestHost
  • findXmlElementText,
  • getRequestHost,
  • getRequestPath,
  • getRequestVerb,
  • getResponseDate,
  • getXmlMessage,
  • getXmlMessageAsBuilder,
  • isParsedFromXmlMessage,
  • parseXmlMessage

Popular in Java

  • Finding current android device location
  • getSharedPreferences (Context)
  • putExtra (Intent)
  • getResourceAsStream (ClassLoader)
  • System (java.lang)
    Provides access to system-related information and resources including standard input and output. Ena
  • Hashtable (java.util)
    A plug-in replacement for JDK1.5 java.util.Hashtable. This version is based on org.cliffc.high_scale
  • Locale (java.util)
    Locale represents a language/country/variant combination. Locales are used to alter the presentatio
  • AtomicInteger (java.util.concurrent.atomic)
    An int value that may be updated atomically. See the java.util.concurrent.atomic package specificati
  • SSLHandshakeException (javax.net.ssl)
    The exception that is thrown when a handshake could not be completed successfully.
  • JFileChooser (javax.swing)
  • Top 12 Jupyter Notebook extensions
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now