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

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

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

origin: Alluxio/alluxio

 @Override
 protected InputStream openObject(String key, OpenOptions options) throws IOException {
  try {
   return new GCSInputStream(mBucketName, key, mClient, options.getOffset());
  } catch (ServiceException e) {
   throw new IOException(e.getMessage());
  }
 }
}
origin: org.alluxio/alluxio-underfs-gcs

 @Override
 protected InputStream openObject(String key, OpenOptions options) throws IOException {
  try {
   return new GCSInputStream(mBucketName, key, mClient, options.getOffset());
  } catch (ServiceException e) {
   throw new IOException(e.getMessage());
  }
 }
}
origin: iterate-ch/cyberduck

log.warn(String.format("Missing permission to read versioning configuration for %s %s", container, e.getMessage()));
return VersioningConfiguration.empty();
log.warn(String.format("Not supported to read versioning configuration for %s %s", container, e.getMessage()));
return VersioningConfiguration.empty();
origin: iterate-ch/cyberduck

  @Override
  public InputStream open() throws IOException {
    try {
      return session.getClient().getObjectImpl(
        false,
        containerService.getContainer(file).getName(),
        containerService.getKey(file),
        null,
        null,
        null,
        null,
        null,
        null,
        file.attributes().getVersionId(),
        new HashMap<String, Object>(),
        chunk.getParameters())
        .getDataInputStream();
    }
    catch(ServiceException e) {
      throw new IOException(e.getMessage(), e);
    }
  }
});
origin: iterate-ch/cyberduck

log.warn(String.format("Missing permission to read location for %s %s", container, e.getMessage()));
return unknown;
log.warn(String.format("Not supported to read location for %s %s", container, e.getMessage()));
return unknown;
origin: iterate-ch/cyberduck

this.append(buffer, e.getMessage());
origin: iterate-ch/cyberduck

log.warn(String.format("Missing permission to read logging configuration for %s %s", bucket.getName(), e.getMessage()));
return LoggingConfiguration.empty();
origin: iterate-ch/cyberduck

log.warn(String.format("Missing permission to read object details for %s %s", file, e.getMessage()));
final StorageObject object = new StorageObject(containerService.getKey(file));
object.setBucketName(container);
origin: iterate-ch/cyberduck

log.warn(String.format("Missing permission to read lifecycle configuration for %s %s", container, e.getMessage()));
return LifecycleConfiguration.empty();
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());
}
origin: iterate-ch/cyberduck

/**
 * @param list ACL from server
 * @return Editable ACL
 */
protected Acl convert(final AccessControlList list) {
  if(log.isDebugEnabled()) {
    try {
      log.debug(list.toXml());
    }
    catch(ServiceException e) {
      log.error(e.getMessage());
    }
  }
  Acl acl = new Acl();
  acl.setOwner(new Acl.CanonicalUser(list.getOwner().getId(), list.getOwner().getDisplayName()));
  for(GrantAndPermission grant : list.getGrantAndPermissions()) {
    Acl.Role role = new Acl.Role(grant.getPermission().toString());
    if(grant.getGrantee() instanceof CanonicalGrantee) {
      acl.addAll(new Acl.CanonicalUser(grant.getGrantee().getIdentifier(),
        ((CanonicalGrantee) grant.getGrantee()).getDisplayName(), false), role);
    }
    else if(grant.getGrantee() instanceof EmailAddressGrantee) {
      acl.addAll(new Acl.EmailUser(grant.getGrantee().getIdentifier()), role);
    }
    else if(grant.getGrantee() instanceof GroupGrantee) {
      acl.addAll(new Acl.GroupUser(grant.getGrantee().getIdentifier()), role);
    }
  }
  return acl;
}
origin: iterate-ch/cyberduck

log.error(e.getMessage());
origin: iterate-ch/cyberduck

log.error(e.getMessage());
org.jets3t.serviceServiceExceptiongetMessage

Popular methods of ServiceException

  • getCause
  • 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

  • Reactive rest calls using spring rest template
  • compareTo (BigDecimal)
  • getSystemService (Context)
  • scheduleAtFixedRate (ScheduledExecutorService)
  • Component (java.awt)
    A component is an object having a graphical representation that can be displayed on the screen and t
  • BufferedInputStream (java.io)
    A BufferedInputStream adds functionality to another input stream-namely, the ability to buffer the i
  • InetAddress (java.net)
    An Internet Protocol (IP) address. This can be either an IPv4 address or an IPv6 address, and in pra
  • Socket (java.net)
    Provides a client-side TCP socket.
  • Path (java.nio.file)
  • ArrayList (java.util)
    ArrayList is an implementation of List, backed by an array. All optional operations including adding
  • Top plugins for Android Studio
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