8000 Provide ThrowsAnnotation · Issue #43 · toolisticon/kotlin-code-generation · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content
Provide ThrowsAnnotation #43
Closed
Closed
@jangalinski

Description

@jangalinski

When modelling functions with exceptions, provide a Throws annotation abstraction.

data class ThrowsAnnotation(val type: ClassName) : KotlinAnnotationSpecSupplier {
    override fun spec(): KotlinAnnotationSpec = buildAnnotation(Throws::class) {
      addMember(FORMAT_KCLASS, type)
    }
  }

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions

    0