@HashCodeAndEqualsPlugin.Enhance public static class ExceptionMethod.ConstructionDelegate.ForStringConstructor extends Object implements ExceptionMethod.ConstructionDelegate
ExceptionMethod.ConstructionDelegate.ForDefaultConstructor, ExceptionMethod.ConstructionDelegate.ForStringConstructor| Constructor and Description |
|---|
ForStringConstructor(TypeDescription throwableType,
String message)
Creates a new construction delegate that calls a constructor by handing it the given string.
|
| 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.
|
public ForStringConstructor(TypeDescription throwableType, String message)
throwableType - The type of the Throwable.message - The string that is handed to the constructor.public StackManipulation make()
make in interface ExceptionMethod.ConstructionDelegateThrowable.Copyright © 2014–2023. All rights reserved.