@HashCodeAndEqualsPlugin.Enhance public static class ExceptionMethod.ConstructionDelegate.ForDefaultConstructor extends java.lang.Object implements ExceptionMethod.ConstructionDelegate
ExceptionMethod.ConstructionDelegate.ForDefaultConstructor, ExceptionMethod.ConstructionDelegate.ForStringConstructor| Modifier and Type | Field and Description |
|---|---|
private MethodDescription |
targetConstructor
The constructor that is used for creating the exception.
|
private TypeDescription |
throwableType
The type of the exception that is to be thrown.
|
| Constructor and Description |
|---|
ForDefaultConstructor(TypeDescription throwableType)
Creates a new construction delegate that calls a default constructor.
|
| Modifier and Type | Method and Description |
|---|---|
StackManipulation |
make()
Creates a stack manipulation that creates pushes all constructor arguments onto the operand stack
and subsequently calls the constructor.
|
private final TypeDescription throwableType
private final MethodDescription targetConstructor
public ForDefaultConstructor(TypeDescription throwableType)
throwableType - The type of the Throwable.public StackManipulation make()
make in interface ExceptionMethod.ConstructionDelegateThrowable.