createThrowsSpec

fun createThrowsSpec(exceptions: Collection<TypeName>, useSiteTarget: AnnotationSpec.UseSiteTarget? = null): AnnotationSpec

Return

a @ThrowsAnnotationSpec representation of a given collection of exceptions.