Class ExceptionMethod.ConstructionDelegate.ForDefaultConstructor

    • Field Detail

      • throwableType

        private final TypeDescription throwableType
        The type of the exception that is to be thrown.
      • targetConstructor

        private final MethodDescription targetConstructor
        The constructor that is used for creating the exception.
    • Constructor Detail

      • ForDefaultConstructor

        public ForDefaultConstructor​(TypeDescription throwableType)
        Creates a new construction delegate that calls a default constructor.
        Parameters:
        throwableType - The type of the Throwable.
    • Method Detail

      • make

        public StackManipulation make()
        Creates a stack manipulation that creates pushes all constructor arguments onto the operand stack and subsequently calls the constructor.
        Specified by:
        make in interface ExceptionMethod.ConstructionDelegate
        Returns:
        A stack manipulation for constructing a Throwable.