Skip to content

Add the ability to annotate exceptions @raises #1610

Open
@vaintrub

Description

@vaintrub

Hello! I have a suggestion to add a new annotation - @raises
I think it would be useful to anyone who has a layer of error classes in their module.

Example:

--- @class NetworkError: cdata
--- @field code number
--- @field body number

--- @raises
---| NetworkError
function some_func() end

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or requestfeat/LuaCats AnnotationsRelated to Lua Language Server Annotations (LuaCats)

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions