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

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

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

origin: net.java.dev.jets3t/jets3t

public ServiceException getServiceException() {
  String fullMessage = message
    + ": PartNumber=" + partNumber
    + ", MinSizeAllowed=" + minSizeAllowed
    + ", ProposedSize=" + proposedSize
    + ", ETag=" + etag;
  ServiceException e = new ServiceException(fullMessage);
  e.setErrorCode(code);
  e.setErrorMessage(message);
  e.setErrorHostId(hostId);
  e.setErrorRequestId(requestId);
  return e;
}
origin: org.apache.servicemix.bundles/org.apache.servicemix.bundles.jets3t

public ServiceException getServiceException() {
  String fullMessage = message
    + ": PartNumber=" + partNumber
    + ", MinSizeAllowed=" + minSizeAllowed
    + ", ProposedSize=" + proposedSize
    + ", ETag=" + etag;
  ServiceException e = new ServiceException(fullMessage);
  e.setErrorCode(code);
  e.setErrorMessage(message);
  e.setErrorHostId(hostId);
  e.setErrorRequestId(requestId);
  return e;
}
origin: iterate-ch/cyberduck

failure.setErrorCode(error.getErrorCode());
failure.setErrorMessage(error.getMessage());
throw new S3ExceptionMappingService().map("Cannot delete {0}", failure,
  failure.setErrorCode(error.getErrorCode());
  failure.setErrorMessage(error.getMessage());
  throw new S3ExceptionMappingService().map("Cannot delete {0}", failure,
org.jets3t.serviceServiceExceptionsetErrorCode

Javadoc

Set the exception's error code; for internal use only.

Popular methods of ServiceException

  • getMessage
  • getCause
  • getErrorCode
  • getErrorMessage
  • <init>
    Create a service exception that includes an underlying cause exception.
  • getResponseCode
  • getResponseHeaders
  • getResponseStatus
  • printStackTrace
  • 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

  • Making http post requests using okhttp
  • setRequestProperty (URLConnection)
  • scheduleAtFixedRate (ScheduledExecutorService)
  • getContentResolver (Context)
  • BitSet (java.util)
    The BitSet class implements abit array [http://en.wikipedia.org/wiki/Bit_array]. Each element is eit
  • Collections (java.util)
    This class consists exclusively of static methods that operate on or return collections. It contains
  • Dictionary (java.util)
    Note: Do not use this class since it is obsolete. Please use the Map interface for new implementatio
  • ResourceBundle (java.util)
    ResourceBundle is an abstract class which is the superclass of classes which provide Locale-specifi
  • Executor (java.util.concurrent)
    An object that executes submitted Runnable tasks. This interface provides a way of decoupling task s
  • Handler (java.util.logging)
    A Handler object accepts a logging request and exports the desired messages to a target, for example
  • Top PhpStorm plugins
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