public class NoSuchInstantiatorException
extends java.lang.Exception
Instantiator
cannot be created.
For example, the exception is thrown when a constructor (method or field)
with a given name was not found.Modifier | Constructor and Description |
---|---|
|
NoSuchInstantiatorException()
Creates a new instance of
NoSuchInstantiatorException without detail message. |
protected |
NoSuchInstantiatorException(java.lang.Class<?> clazz,
java.lang.String name)
Constructs an instance of
NoSuchInstantiatorException with a generated detail message. |
protected |
NoSuchInstantiatorException(java.lang.Class<?> clazz,
java.lang.String name,
boolean convertStringArguments,
java.lang.Object[] arguments,
java.lang.String lastError)
Constructs an instance of
NoSuchInstantiatorException with a generated detail message. |
protected |
NoSuchInstantiatorException(java.lang.Class<?> clazz,
java.lang.String name,
java.lang.Class<?>[] argumentClasses)
Constructs an instance of
NoSuchInstantiatorException with a generated detail message. |
protected |
NoSuchInstantiatorException(java.lang.Class<?> clazz,
java.lang.String name,
int argumentCount)
Constructs an instance of
NoSuchInstantiatorException with a generated detail message. |
|
NoSuchInstantiatorException(java.lang.String msg)
Constructs an instance of
NoSuchInstantiatorException with the specified detail message. |
public NoSuchInstantiatorException()
NoSuchInstantiatorException
without detail message.public NoSuchInstantiatorException(java.lang.String msg)
NoSuchInstantiatorException
with the specified detail message.msg
- the detail message.protected NoSuchInstantiatorException(java.lang.Class<?> clazz, java.lang.String name)
NoSuchInstantiatorException
with a generated detail message.
This constructor is used to indicate that there is no field of the given name.clazz
- the class in which the field was not foundname
- the name of the field that was not foundprotected NoSuchInstantiatorException(java.lang.Class<?> clazz, java.lang.String name, java.lang.Class<?>[] argumentClasses)
NoSuchInstantiatorException
with a generated detail message.
This constructor is used to indicate that there is no method/constructor of the given name and arguments.clazz
- the class in which the method/constructor was not foundname
- the name of the method/constructor that was not foundargumentClasses
- the class of the method/constructor argumentsprotected NoSuchInstantiatorException(java.lang.Class<?> clazz, java.lang.String name, boolean convertStringArguments, java.lang.Object[] arguments, java.lang.String lastError)
NoSuchInstantiatorException
with a generated detail message.
This constructor is used to indicate that there is no method/constructor of the given name and arguments.
The actual argument values are passed.clazz
- the class in which the method/constructor was not foundname
- the name of the method/constructor that was not foundconvertStringArguments
- flag whether the argument conversion from string was usedarguments
- the method/constructor argumentslastError
- the last error received when trying to instantiateprotected NoSuchInstantiatorException(java.lang.Class<?> clazz, java.lang.String name, int argumentCount)
NoSuchInstantiatorException
with a generated detail message.
This constructor is used to indicate that there is no method/constructor of the given name and
the given number of arguments.clazz
- the class in which the method/constructor was not foundname
- the name of the method/constructor that was not foundargumentCount
- the number of method/constructor arguments