Interface DynamicType.Builder.MethodDefinition.ExceptionDefinition<U>

Type Parameters:
U - A loaded type that the built type is guaranteed to be a subclass of.
All Superinterfaces:
DynamicType.Builder.MethodDefinition.ImplementationDefinition<U>, DynamicType.Builder.MethodDefinition.TypeVariableDefinition<U>
All Known Subinterfaces:
DynamicType.Builder.MethodDefinition.ParameterDefinition<U>, DynamicType.Builder.MethodDefinition.ParameterDefinition.Annotatable<V>, DynamicType.Builder.MethodDefinition.ParameterDefinition.Initial<V>, DynamicType.Builder.MethodDefinition.ParameterDefinition.Simple<V>, DynamicType.Builder.MethodDefinition.ParameterDefinition.Simple.Annotatable<V>
All Known Implementing Classes:
DynamicType.Builder.AbstractBase.Adapter.MethodDefinitionAdapter, DynamicType.Builder.AbstractBase.Adapter.MethodDefinitionAdapter.ParameterAnnotationAdapter, DynamicType.Builder.AbstractBase.Adapter.MethodDefinitionAdapter.SimpleParameterAnnotationAdapter, DynamicType.Builder.MethodDefinition.ExceptionDefinition.AbstractBase, DynamicType.Builder.MethodDefinition.ParameterDefinition.AbstractBase, DynamicType.Builder.MethodDefinition.ParameterDefinition.Annotatable.AbstractBase, DynamicType.Builder.MethodDefinition.ParameterDefinition.Annotatable.AbstractBase.Adapter, DynamicType.Builder.MethodDefinition.ParameterDefinition.Initial.AbstractBase, DynamicType.Builder.MethodDefinition.ParameterDefinition.Simple.AbstractBase, DynamicType.Builder.MethodDefinition.ParameterDefinition.Simple.Annotatable.AbstractBase, DynamicType.Builder.MethodDefinition.ParameterDefinition.Simple.Annotatable.AbstractBase.Adapter
Enclosing interface:
DynamicType.Builder.MethodDefinition<S>

public static interface DynamicType.Builder.MethodDefinition.ExceptionDefinition<U> extends DynamicType.Builder.MethodDefinition.TypeVariableDefinition<U>
A builder for defining an implementation of a method and optionally defining a type variable or thrown exception.
  • Method Details

    • throwing

      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

      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

      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

      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.