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

Category of Error codes #1440

Open
adrianacapua opened this issue Nov 12, 2021 · 1 comment
Open

Category of Error codes #1440

adrianacapua opened this issue Nov 12, 2021 · 1 comment

Comments

@adrianacapua
Copy link

  1. What is the link to the documentation section that needs improving?
    Errors

  2. Describe the confusion
    I'm currently building an API that uses node-oracledb. In my app, I'd like to know whether the error is caused by the data (ex: ORA-12899: value too large for column) or by a connectivity issue during runtime. I know there's a lot of error codes available, I found the documentation: https://docs.oracle.com/en/database/oracle/oracle-database/12.2/errmg/index.html

However, I can't find any documentation that tells which range of codes covers what type of error. Do I need to filter through the long list of error codes to identify which ones are for data error and connectivity error, or is there existing documentation or tool to achieve this?

  1. Suggest changes that would help
    It would be great if the documentation categorizes error codes or an additional field in the Error object that will identify the type of error.
@cjbj
Copy link
Member

cjbj commented Nov 12, 2021

This is heavily dependent on Oracle Database, which doesn't provide a convenient list that I know of (e.g. nothing here). Some people try to maintain their own lists, e.g. this but there is no mechanism for Oracle DB maintainers to tell us all that they have introduced a new message in the database.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants