Interface DynamicType.Builder.MethodDefinition.ExceptionDefinition<U>

    • Method Detail

      • throwing

        DynamicType.Builder.MethodDefinition.ExceptionDefinition<U> throwing​(java.lang.reflect.Type... type)
        Defines a method variable to be declared by the currently defined method.
        Parameters:
        type - The type of the exception being declared by the currently defined method.
        Returns:
        A new builder that is equal to the current builder but where the currently defined method declares the specified exception type.
      • throwing

        DynamicType.Builder.MethodDefinition.ExceptionDefinition<U> throwing​(java.util.List<? extends java.lang.reflect.Type> types)
        Defines a method variable to be declared by the currently defined method.
        Parameters:
        types - The type of the exception being declared by the currently defined method.
        Returns:
        A new builder that is equal to the current builder but where the currently defined method declares the specified exception type.
      • throwing

        DynamicType.Builder.MethodDefinition.ExceptionDefinition<U> throwing​(TypeDefinition... type)
        Defines a method variable to be declared by the currently defined method.
        Parameters:
        type - The type of the exception being declared by the currently defined method.
        Returns:
        A new builder that is equal to the current builder but where the currently defined method declares the specified exception type.
      • throwing

        DynamicType.Builder.MethodDefinition.ExceptionDefinition<U> throwing​(java.util.Collection<? extends TypeDefinition> types)
        Defines a method variable to be declared by the currently defined method.
        Parameters:
        types - The type of the exception being declared by the currently defined method.
        Returns:
        A new builder that is equal to the current builder but where the currently defined method declares the specified exception type.