Class ArtifactStoreIOException

  • All Implemented Interfaces:
    java.io.Serializable

    public class ArtifactStoreIOException
    extends java.io.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:
    Serialized Form
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static <T> T throwIOException​(java.util.function.Supplier<T> fn)
      Helper methods to catch any exception thrown by a method and instead throw an ArtifactStoreIOException
      • Methods inherited from class java.lang.Throwable

        addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
    • Constructor Detail

      • ArtifactStoreIOException

        public ArtifactStoreIOException​(java.lang.Exception e)
    • Method Detail

      • throwIOException

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