Importing error classes not working according to doc
See original GitHub issueI can’t require the proper error classes from The influx lib. It only works for ResultError, it fails for RequestError and ServiceNotAvailableError.
Snippet illustrating my issue:
const Influx = require('influx');
const ResultError = Influx.ResultError;
const RequestError = Influx.RequestError;
const ServiceNotAvailableError = Influx.ServiceNotAvailableError;
Influx version: 5.0.7 Node version: v8.9.1 OS: Windows 7
Did anyone else have similar problems ? If this is indeed a bug, i would be happy to help with a PR. Thank you.
Issue Analytics
- State:
- Created 5 years ago
- Comments:8 (3 by maintainers)
Top Results From Across the Web
Javadoc Exclude causing errors on import - Stack Overflow
Is there a way to "include" the classes/packages, but NOT export the javadoc for them? Edit: Here's the relevant javadoc task: task gendocs(type ......
Read more >How to Fix ImportError: Cannot Import Name in Python - Rollbar
This error generally occurs when a class cannot be imported due to one of the following reasons: The imported class is in a...
Read more >Python import: Advanced Techniques and Tips
The Python import system is as powerful as it is useful. In this in-depth tutorial, you'll learn how to harness this power to...
Read more >Exception Class (System) - Microsoft Learn
When an exception occurs, the runtime makes a text message available to inform the user of the nature of the error and to...
Read more >Troubleshooting manual import errors - Lexia Help Center
Option 1: Remove the class name from your import file. After the import, manually add the student(s) or staff to the class in...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
@bencevans Thanks for taking the time to look into this 😃
The Errors need to be propagated up to the main domain for requirment such as your example @Radu94.
In the meantime they are exported from the pool module and can be imported with: