test_class.file: oak-store-document/src/test/java/org/apache/jackrabbit/oak/plugins/document/DocumentStoreExceptionTest.java
test_class.identifier: DocumentStoreExceptionTest
test_case.body: @Test
      public void asDocumentStoreException() {
          String msg = "foo";
          Exception cause = new IOException();
          Type type = TRANSIENT;
          List<String> ids = Lists.newArrayList("one", "two", "three");
          DocumentStoreException dse = DocumentStoreException.asDocumentStoreException(msg, cause, type, ids);
          assertTrue(dse.getMessage().contains(msg));
          for (String id : ids) {
              assertTrue(dse.getMessage().contains(id));
          }
          assertSame(cause, dse.getCause());
          assertEquals(type, dse.getType());
      }
test_case.class_method_signature: DocumentStoreExceptionTest.asDocumentStoreException()
test_case.full_signature: @Test public void asDocumentStoreException()
test_case.identifier: asDocumentStoreException
test_case.invocations: newArrayList asDocumentStoreException assertTrue contains getMessage assertTrue contains getMessage assertSame getCause assertEquals getType
test_case.modifiers: @Test public
test_case.parameters: ()
test_case.return: void
test_case.signature: void asDocumentStoreException()
focal_class.declarator: serialVersionUID = 4135594565927443068L
focal_class.modifier: private static final
focal_class.original_string: private static final long serialVersionUID = 4135594565927443068L;
focal_class.type: long
focal_class.var_name: serialVersionUID
focal_class.declarator: type
focal_class.modifier: private final
focal_class.original_string: private final Type type;
focal_class.type: Type
focal_class.var_name: type
focal_class.file: oak-store-document/src/main/java/org/apache/jackrabbit/oak/plugins/document/DocumentStoreException.java
focal_class.identifier: DocumentStoreException
focal_class.class_method_signature: DocumentStoreException.DocumentStoreException(String message)
focal_class.full_signature: public  DocumentStoreException(String message)
focal_class.identifier: DocumentStoreException
focal_class.modifiers: public
focal_class.parameters: (String message)
focal_class.signature:  DocumentStoreException(String message)
focal_class.class_method_signature: DocumentStoreException.DocumentStoreException(Throwable cause)
focal_class.full_signature: public  DocumentStoreException(Throwable cause)
focal_class.identifier: DocumentStoreException
focal_class.modifiers: public
focal_class.parameters: (Throwable cause)
focal_class.signature:  DocumentStoreException(Throwable cause)
focal_class.class_method_signature: DocumentStoreException.DocumentStoreException(String message, Throwable cause)
focal_class.full_signature: public  DocumentStoreException(String message, Throwable cause)
focal_class.identifier: DocumentStoreException
focal_class.modifiers: public
focal_class.parameters: (String message, Throwable cause)
focal_class.signature:  DocumentStoreException(String message, Throwable cause)
focal_class.class_method_signature: DocumentStoreException.DocumentStoreException(String message, Throwable cause, Type type)
focal_class.full_signature: public  DocumentStoreException(String message, Throwable cause, Type type)
focal_class.identifier: DocumentStoreException
focal_class.modifiers: public
focal_class.parameters: (String message, Throwable cause, Type type)
focal_class.signature:  DocumentStoreException(String message, Throwable cause, Type type)
focal_class.class_method_signature: DocumentStoreException.convert(@NotNull Throwable t)
focal_class.full_signature: public static DocumentStoreException convert(@NotNull Throwable t)
focal_class.identifier: convert
focal_class.modifiers: public static
focal_class.parameters: (@NotNull Throwable t)
focal_class.return: DocumentStoreException
focal_class.signature: DocumentStoreException convert(@NotNull Throwable t)
focal_class.class_method_signature: DocumentStoreException.convert(@NotNull Throwable t, String msg)
focal_class.full_signature: public static DocumentStoreException convert(@NotNull Throwable t, String msg)
focal_class.identifier: convert
focal_class.modifiers: public static
focal_class.parameters: (@NotNull Throwable t, String msg)
focal_class.return: DocumentStoreException
focal_class.signature: DocumentStoreException convert(@NotNull Throwable t, String msg)
focal_class.class_method_signature: DocumentStoreException.convert(@NotNull Throwable t,
                                                   Iterable<String> ids)
focal_class.full_signature: public static DocumentStoreException convert(@NotNull Throwable t,
                                                   Iterable<String> ids)
focal_class.identifier: convert
focal_class.modifiers: public static
focal_class.parameters: (@NotNull Throwable t,
                                                   Iterable<String> ids)
focal_class.return: DocumentStoreException
focal_class.signature: DocumentStoreException convert(@NotNull Throwable t,
                                                   Iterable<String> ids)
focal_class.class_method_signature: DocumentStoreException.asDocumentStoreException(String message,
                                                                    Throwable t,
                                                                    Type type,
                                                                    Iterable<String> ids)
focal_class.full_signature: public static DocumentStoreException asDocumentStoreException(String message,
                                                                    Throwable t,
                                                                    Type type,
                                                                    Iterable<String> ids)
focal_class.identifier: asDocumentStoreException
focal_class.modifiers: public static
focal_class.parameters: (String message,
                                                                    Throwable t,
                                                                    Type type,
                                                                    Iterable<String> ids)
focal_class.return: DocumentStoreException
focal_class.signature: DocumentStoreException asDocumentStoreException(String message,
                                                                    Throwable t,
                                                                    Type type,
                                                                    Iterable<String> ids)
focal_class.class_method_signature: DocumentStoreException.getType()
focal_class.full_signature: public Type getType()
focal_class.identifier: getType
focal_class.modifiers: public
focal_class.parameters: ()
focal_class.return: Type
focal_class.signature: Type getType()
focal_class.class_method_signature: DocumentStoreException.getMessage(Throwable t)
focal_class.full_signature: @Nullable private static String getMessage(Throwable t)
focal_class.identifier: getMessage
focal_class.modifiers: @Nullable private static
focal_class.parameters: (Throwable t)
focal_class.return: String
focal_class.signature: String getMessage(Throwable t)
focal_class.superclass: extends RuntimeException
focal_method.body: public static DocumentStoreException asDocumentStoreException(String message,
                                                                    Throwable t,
                                                                    Type type,
                                                                    Iterable<String> ids) {
          String msg = message;
          if (ids.iterator().hasNext()) {
              msg += " " + Lists.newArrayList(ids);
          }
          if (t instanceof DocumentStoreException) {
              return (DocumentStoreException) t;
          } else {
              return new DocumentStoreException(msg, t, type);
          }
      }
focal_method.class_method_signature: DocumentStoreException.asDocumentStoreException(String message,
                                                                    Throwable t,
                                                                    Type type,
                                                                    Iterable<String> ids)
focal_method.full_signature: public static DocumentStoreException asDocumentStoreException(String message,
                                                                    Throwable t,
                                                                    Type type,
                                                                    Iterable<String> ids)
focal_method.identifier: asDocumentStoreException
focal_method.invocations: hasNext iterator newArrayList
focal_method.modifiers: public static
focal_method.parameters: (String message,
                                                                    Throwable t,
                                                                    Type type,
                                                                    Iterable<String> ids)
focal_method.return: DocumentStoreException
focal_method.signature: DocumentStoreException asDocumentStoreException(String message,
                                                                    Throwable t,
                                                                    Type type,
                                                                    Iterable<String> ids)