# Uses of Interface
java.lang.classfile.CodeBuilder.CatchBuilder

Packages that use CodeBuilder.CatchBuilderPREVIEW
Package
Description
java.lang.classfile
Provides classfile parsing, generation, and transformation library.

- ## Uses of CodeBuilder.CatchBuilderPREVIEW in java.lang.classfilePREVIEW

  Methods in java.lang.classfilePREVIEW that return CodeBuilder.CatchBuilderPREVIEW
  Modifier and Type
  Method
  Description
  `CodeBuilder.CatchBuilderPREVIEW`
  CodeBuilder.CatchBuilder.`catching(ClassDesc exceptionType, Consumer<CodeBuilder.BlockCodeBuilderPREVIEW> catchHandler)`
  Adds a catch block that catches an exception of the given type.
  `CodeBuilder.CatchBuilderPREVIEW`
  CodeBuilder.CatchBuilder.`catchingMulti(List<ClassDesc> exceptionTypes, Consumer<CodeBuilder.BlockCodeBuilderPREVIEW> catchHandler)`
  Adds a catch block that catches exceptions of the given types.