public static class ExceptionMethod.ConstructionDelegate.ForStringConstructor extends Object implements ExceptionMethod.ConstructionDelegate
ExceptionMethod.ConstructionDelegate.ForDefaultConstructor, ExceptionMethod.ConstructionDelegate.ForStringConstructor| Constructor and Description |
|---|
ForStringConstructor(TypeDescription exceptionType,
String message)
Creates a new construction delegate that calls a constructor by handing it the given string.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object other) |
int |
hashCode() |
StackManipulation |
make()
Creates a stack manipulation that creates pushes all constructor arguments onto the operand stack
and subsequently calls the constructor.
|
String |
toString() |
public ForStringConstructor(TypeDescription exceptionType, String message)
exceptionType - The type of the isThrowable.message - The string that is handed to the constructor.public StackManipulation make()
ExceptionMethod.ConstructionDelegatemake in interface ExceptionMethod.ConstructionDelegateCopyright © 2014–2015. All rights reserved.