Class ExceptionMethod.ConstructionDelegate.ForDefaultConstructor

java.lang.Object
net.bytebuddy.implementation.ExceptionMethod.ConstructionDelegate.ForDefaultConstructor
All Implemented Interfaces:
ExceptionMethod.ConstructionDelegate
Enclosing interface:
ExceptionMethod.ConstructionDelegate

@Enhance public static class ExceptionMethod.ConstructionDelegate.ForDefaultConstructor extends Object implements ExceptionMethod.ConstructionDelegate
A construction delegate that calls the default constructor.
  • Field Details

    • 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 Details

    • ForDefaultConstructor

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