Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Bug]: Some error types are not displayed in the API docs #144

Open
nipunayf opened this issue Oct 11, 2022 · 0 comments
Open

[Bug]: Some error types are not displayed in the API docs #144

nipunayf opened this issue Oct 11, 2022 · 0 comments
Labels

Comments

@nipunayf
Copy link
Contributor

Description

module-ballerina-toml defines the errors in the sub-modules, and they are exposed to the user by redefining them through the default module. It expects to display the description of the following errors via the API docs.

# Represents the generic error type for the TOML package.
public type Error ParsingError|WritingError|FileError;

// Level 1
# Represents an error caused when failed to access the file.
public type FileError distinct (io:Error|file:Error);

# Represents an error caused during the parsing.
public type ParsingError parser:ParsingError;

# Represents an error caused when writing a TOML file.
public type WritingError writer:WritingError;

// Level 2
# Represents an error caused by the lexical analyzer.
public type LexicalError lexer:LexicalError;

# Represents an error caused for an invalid grammar production.
public type GrammarError parser:GrammarError;

# Represents an error caused by the Ballerina lang when converting a data type.
public type ConversionError parser:ConversionError;

However, only the following two errors are visible.

Steps to Reproduce

  1. Clone the Ballerina TOML repository git clone [email protected]:ballerina-platform/module-ballerina-toml.git
  2. Run the bal doc command on the package.
  3. Check the errors in the API docs google-chrome target/apidocs/ballerina/toml/1.0.0/index.html

The error can be reproduced with module-ballerina-yaml as well.

Affected Version(s)

2201.2.1

OS, DB, other environment details and versions

OS - Ubuntu 22.04.1 LTS

Related area

-> API Docs

Related issue(s) (optional)

No response

Suggested label(s) (optional)

No response

Suggested assignee(s) (optional)

No response

@ballerina-bot ballerina-bot transferred this issue from ballerina-platform/ballerina-lang Oct 11, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant