Package org.apache.hadoop.fs.s3a.impl
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:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic enumAn (extensible) enum of kinds of instantiation failure. -
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionInstantiationIOException(InstantiationIOException.Kind kind, URI uri, String classname, String key, String message, Throwable cause) -
Method Summary
Modifier and TypeMethodDescriptiongetKey()getKind()static InstantiationIOExceptioninstantiationException(URI uri, String classname, String key, Throwable t) General instantiation failure.static InstantiationIOExceptionisAbstract(URI uri, String classname, String key) Class is abstract.static InstantiationIOExceptionisNotInstanceOf(URI uri, String classname, String interfaceName, String key) Class does not implement the desired interface.static InstantiationIOExceptionunavailable(URI uri, String classname, String key, String text) Class is unavailable for some reason, probably a missing dependency.static InstantiationIOExceptionunsupportedConstructor(URI uri, String classname, String key) Failure to find a valid constructor (signature, visibility) or factory method.Methods inherited from class org.apache.hadoop.fs.PathIOException
getMessage, getPath, getTargetPath, setOperation, setTargetPath, withFullyQualifiedPathMethods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Field Details
-
ABSTRACT_PROVIDER
- See Also:
-
CONSTRUCTOR_EXCEPTION
- See Also:
-
INSTANTIATION_EXCEPTION
- See Also:
-
DOES_NOT_IMPLEMENT
- See Also:
-
-
Constructor Details
-
InstantiationIOException
-
-
Method Details
-
getClassname
-
getKind
-
getKey
-
isAbstract
Class is abstract.- Parameters:
uri- URI of filesystemclassname- 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 filesystemclassname- classname.interfaceName- required interfacekey- configuration key- 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 filesystemclassname- 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 filesystemclassname- classname.key- configuration keyt- thrown- Returns:
- an exception.
-