Class ArtifactStoreIOException

java.lang.Object
java.lang.Throwable
java.lang.Exception
java.io.IOException
com.netflix.spinnaker.kork.artifacts.artifactstore.exceptions.ArtifactStoreIOException
All Implemented Interfaces:
Serializable

public class ArtifactStoreIOException extends IOException
An exception used by the artifact store (de)serializers since the (de)serialize methods only throw IOExceptions, and if any other exception is thrown jackson assumes it's some JSON error.
See Also:
  • Constructor Details

    • ArtifactStoreIOException

      public ArtifactStoreIOException(Exception e)
  • Method Details

    • throwIOException

      public static <T> T throwIOException(Supplier<T> fn) throws IOException
      Helper methods to catch any exception thrown by a method and instead throw an ArtifactStoreIOException
      Throws:
      IOException