All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.wavefront.sdk.common.clients.exceptions.CompositeIOException Maven / Gradle / Ivy

package com.wavefront.sdk.common.clients.exceptions;

import java.io.IOException;

public class CompositeIOException extends IOException {
  private final MultiClientIOException exceptions;

  public CompositeIOException(MultiClientIOException exceptions) {
    super("Client errors were detected and thrown.");
    this.exceptions = exceptions;
  }

  @Override
  public String toString() {
    StringBuilder builder = new StringBuilder();
    for (Exception exception : exceptions) {
      builder.append('\t').
          append(exception.toString()).
          append('\n');
    }

    return String.format("%s\n{composite exceptions=\n%s}\n%s", this.getClass().getName(),
        builder.toString(), super.toString());
  }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy