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

How to use
toString
method
in
org.apache.chemistry.opencmis.commons.exceptions.CmisBaseException

Best Java code snippets using org.apache.chemistry.opencmis.commons.exceptions.CmisBaseException.toString (Showing top 5 results out of 315)

origin: org.apache.chemistry.opencmis/chemistry-opencmis-test-tck

private void testTrailingSpace(Session session, Folder testFolder) {
  String name = "trailing.txt";
  try {
    Document doc = createDocumentWithoutChecks(testFolder, name + " ");
    if (doc.getName().equals(name + " ")) {
      addResult(createInfoResult("Repository does supports document names with a trailing space."));
    } else {
      if (doc.getName().equals(name)) {
        addResult(createInfoResult("Repository removes trailing space from document name."));
      } else {
        addResult(createInfoResult("Repository renames documents with a trailing space."));
      }
    }
  } catch (CmisBaseException e) {
    addResult(createInfoResult("Repository does not support document names with a trailing space. Exception: "
        + e.toString()));
  }
}
origin: org.apache.chemistry.opencmis/chemistry-opencmis-test-tck

private void testLeadingSpace(Session session, Folder testFolder) {
  String name = "leading.txt";
  try {
    Document doc = createDocumentWithoutChecks(testFolder, " " + name);
    if (doc.getName().equals(" " + name)) {
      addResult(createInfoResult("Repository does supports document names with a leading space."));
    } else {
      if (doc.getName().equals(name)) {
        addResult(createInfoResult("Repository removes leading space from document name."));
      } else {
        addResult(createInfoResult("Repository renames documents with a leading space."));
      }
    }
  } catch (CmisBaseException e) {
    addResult(createInfoResult("Repository does not support document names with a leading space. Exception: "
        + e.toString()));
  }
}
origin: org.apache.chemistry.opencmis/chemistry-opencmis-test-tck

private void testCenterSpaceSpace(Session session, Folder testFolder) {
  String name = "center space.txt";
  try {
    Document doc = createDocumentWithoutChecks(testFolder, name);
    if (doc.getName().equals(name)) {
      addResult(createInfoResult("Repository does supports document names with a space."));
    } else {
      if (doc.getName().equals("centerspace.txt")) {
        addResult(createInfoResult("Repository removes spaces from document name."));
      } else {
        addResult(createInfoResult("Repository renames documents with a space."));
      }
    }
  } catch (CmisBaseException e) {
    addResult(createInfoResult("Repository does not support document names with a space. Exception: "
        + e.toString()));
  }
}
origin: org.apache.chemistry.opencmis/chemistry-opencmis-test-tck

private void testMultipleCenterSpaceSpace(Session session, Folder testFolder) {
  String name = "twocenter  spaces.txt";
  try {
    Document doc = createDocumentWithoutChecks(testFolder, name);
    if (doc.getName().equals(name)) {
      addResult(createInfoResult("Repository does supports document names with more than one successive spaces."));
    } else {
      if (doc.getName().equals("twocenterspaces.txt")) {
        addResult(createInfoResult("Repository removes spaces from document name."));
      } else if (doc.getName().equals("twocenter spaces.txt")) {
        addResult(createInfoResult("Repository combines multiple spaces into one in document names."));
      } else {
        addResult(createInfoResult("Repository renames documents with a space."));
      }
    }
  } catch (CmisBaseException e) {
    addResult(createInfoResult("Repository does not support document names with a space. Exception: "
        + e.toString()));
  }
}
origin: org.apache.chemistry.opencmis/chemistry-opencmis-client-bindings

throw new CmisRuntimeException("Could not determine the name of the PWC: " + e.toString(), e);
org.apache.chemistry.opencmis.commons.exceptionsCmisBaseExceptiontoString

Popular methods of CmisBaseException

  • getErrorContent
    Returns the content of the error page sent by the web server.
  • getExceptionName
    Returns the name of the exception as defined in the CMIS specification.
  • getAdditionalData
    Returns additional data, if available.
  • getCode
    Returns the error code sent by the CMIS repository (Web Services binding only).
  • getMessage
  • printStackTrace

Popular in Java

  • Finding current android device location
  • setScale (BigDecimal)
  • getApplicationContext (Context)
  • getExternalFilesDir (Context)
  • Component (java.awt)
    A component is an object having a graphical representation that can be displayed on the screen and t
  • BufferedWriter (java.io)
    Wraps an existing Writer and buffers the output. Expensive interaction with the underlying reader is
  • EOFException (java.io)
    Thrown when a program encounters the end of a file or stream during an input operation.
  • DateFormat (java.text)
    Formats or parses dates and times.This class provides factories for obtaining instances configured f
  • SortedMap (java.util)
    A map that has its keys ordered. The sorting is according to either the natural ordering of its keys
  • Table (org.hibernate.mapping)
    A relational table
  • Top 17 PhpStorm Plugins
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimAtomGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

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