code: @Override
      public StackTraceElement[] getStackTrace() {
          ArrayList<StackTraceElement> stackTrace = new ArrayList<>();
          
          for (Throwable exception : exceptions) {
              stackTrace.addAll(Arrays.asList(exception.getStackTrace()));
          }
          
          return stackTrace.toArray(new StackTraceElement[stackTrace.size()]);
      }
docs: Returns the stack trace, which is the union of all stack traces of contained exceptions.