Tabnine Logo
GoogleJsonError.toString
Code IndexAdd Tabnine to your IDE (free)

How to use
toString
method
in
com.google.api.client.googleapis.json.GoogleJsonError

Best Java code snippets using com.google.api.client.googleapis.json.GoogleJsonError.toString (Showing top 1 results out of 315)

origin: com.google.cloud.bigdataoss/gcsio

/** Processes failed copy requests */
private void onCopyFailure(
  KeySetView<IOException, Boolean> innerExceptions,
  GoogleJsonError e,
  String srcBucketName, String srcObjectName) {
 if (errorExtractor.itemNotFound(e)) {
  FileNotFoundException fnfe =
    GoogleCloudStorageExceptions.getFileNotFoundException(srcBucketName, srcObjectName);
  innerExceptions.add((FileNotFoundException) fnfe.initCause(new IOException(e.toString())));
 } else {
  String srcString = StorageResourceId.createReadableString(srcBucketName, srcObjectName);
  innerExceptions.add(new IOException(String.format("Error copying %s:%n%s", srcString, e)));
 }
}
com.google.api.client.googleapis.jsonGoogleJsonErrortoString

Popular methods of GoogleJsonError

  • getMessage
    Returns the human-readable explanation of the error or null for none.
  • getCode
    Returns the HTTP status code of this response or null for none.
  • <init>
  • getErrors
    Returns the list of detailed errors or null for none.
  • setCode
    Sets the HTTP status code of this response or null for none.
  • setMessage
    Sets the human-readable explanation of the error or null for none.
  • setErrors
    Sets the list of detailed errors or null for none.
  • toPrettyString
  • get
  • setFactory

Popular in Java

  • Making http requests using okhttp
  • setContentView (Activity)
  • setRequestProperty (URLConnection)
  • setScale (BigDecimal)
  • ObjectMapper (com.fasterxml.jackson.databind)
    ObjectMapper provides functionality for reading and writing JSON, either to and from basic POJOs (Pl
  • Path (java.nio.file)
  • TimeUnit (java.util.concurrent)
    A TimeUnit represents time durations at a given unit of granularity and provides utility methods to
  • ServletException (javax.servlet)
    Defines a general exception a servlet can throw when it encounters difficulty.
  • LoggerFactory (org.slf4j)
    The LoggerFactory is a utility class producing Loggers for various logging APIs, most notably for lo
  • SAXParseException (org.xml.sax)
    Encapsulate an XML parse error or warning.> This module, both source code and documentation, is in t
  • Top Vim 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