Class InstantiationIOException

java.lang.Object
java.lang.Throwable
java.lang.Exception
java.io.IOException
org.apache.hadoop.fs.PathIOException
org.apache.hadoop.fs.s3a.impl.InstantiationIOException
All Implemented Interfaces:
Serializable

public class InstantiationIOException extends org.apache.hadoop.fs.PathIOException
An instantiation exception raised during reflection-based creation of classes. Uses an enum of kind so tests/code can examine it, without creating a full hierarchy of exception classes.
See Also:
  • Field Details

  • Constructor Details

  • Method Details

    • getClassname

      public String getClassname()
    • getKind

    • getKey

      public String getKey()
    • isAbstract

      public static InstantiationIOException isAbstract(URI uri, String classname, String key)
      Class is abstract.
      Parameters:
      uri - URI of filesystem
      classname - classname.
      key - configuration key
      Returns:
      an exception.
    • isNotInstanceOf

      public static InstantiationIOException isNotInstanceOf(@Nullable URI uri, String classname, String interfaceName, String key)
      Class does not implement the desired interface.
      Parameters:
      uri - URI of filesystem
      classname - classname.
      interfaceName - required interface
      key - configuration key
      Returns:
      an exception.
    • unavailable

      public static InstantiationIOException unavailable(@Nullable URI uri, @Nullable String classname, @Nullable String key, String text)
      Class is unavailable for some reason, probably a missing dependency.
      Parameters:
      uri - URI of filesystem
      classname - classname.
      key - configuration key
      text - text to include
      Returns:
      an exception.
    • unsupportedConstructor

      public static InstantiationIOException unsupportedConstructor(@Nullable URI uri, String classname, String key)
      Failure to find a valid constructor (signature, visibility) or factory method.
      Parameters:
      uri - URI of filesystem
      classname - classname.
      key - configuration key
      Returns:
      an exception.
    • instantiationException

      public static InstantiationIOException instantiationException(@Nullable URI uri, String classname, String key, Throwable t)
      General instantiation failure.
      Parameters:
      uri - URI of filesystem
      classname - classname.
      key - configuration key
      t - thrown
      Returns:
      an exception.