Class ExceptionMethod.ConstructionDelegate.ForStringConstructor
java.lang.Object
net.bytebuddy.implementation.ExceptionMethod.ConstructionDelegate.ForStringConstructor
- All Implemented Interfaces:
ExceptionMethod.ConstructionDelegate
- Enclosing interface:
ExceptionMethod.ConstructionDelegate
@Enhance
public static class ExceptionMethod.ConstructionDelegate.ForStringConstructor
extends Object
implements ExceptionMethod.ConstructionDelegate
A construction delegate that calls a constructor that takes a single string as its argument.
-
Nested Class Summary
Nested classes/interfaces inherited from interface ExceptionMethod.ConstructionDelegate
ExceptionMethod.ConstructionDelegate.ForDefaultConstructor, ExceptionMethod.ConstructionDelegate.ForStringConstructor -
Constructor Summary
ConstructorsConstructorDescriptionForStringConstructor(TypeDescription throwableType, String message) Creates a new construction delegate that calls a constructor by handing it the given string. -
Method Summary
Modifier and TypeMethodDescriptionmake()Creates a stack manipulation that creates pushes all constructor arguments onto the operand stack and subsequently calls the constructor.
-
Constructor Details
-
ForStringConstructor
Creates a new construction delegate that calls a constructor by handing it the given string.- Parameters:
throwableType- The type of theThrowable.message- The string that is handed to the constructor.
-
-
Method Details
-
make
Creates a stack manipulation that creates pushes all constructor arguments onto the operand stack and subsequently calls the constructor.- Specified by:
makein interfaceExceptionMethod.ConstructionDelegate- Returns:
- A stack manipulation for constructing a
Throwable.
-