How does the error handling works?
See original GitHub issueHey @ansu5555 🤓 ✌️
I noticed there is no error handling on the dependency
I’ve tried to use the PDFViewer
component but I’m passing a URL
(like /my/file/pdf) on the ‘url’ property, this url provides a pdf document itself on the request but if the request response an error, my app crashes due to the PDFViewer
lacks of onError
handler method.
Do you have any idea how could I handle the error?
Issue Analytics
- State:
- Created 4 years ago
- Comments:5 (3 by maintainers)
Top Results From Across the Web
What is Exception Handling? - SearchSoftwareQuality
What is exception handling? Exception handling is the process of responding to unwanted or unexpected events when a computer program runs.
Read more >4. Error Handling - Open Book Project
The theory behind exception handling goes like this: It is possible for code to raise (or throw) an exception, which is a value....
Read more >How the Exception Handling Works in Java
Step 1: When an error occurs within a method, the method creates an object and hands it off to the runtime system this...
Read more >Exception handling - Wikipedia
In computing and computer programming, exception handling is the process of responding to the occurrence of exceptions – anomalous or exceptional conditions ......
Read more >Control flow and error handling - JavaScript - MDN Web Docs
JavaScript supports a compact set of statements, specifically control flow statements, that you can use to incorporate a great deal of ...
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
Awesome! 😃 Thanks @ansu5555, it works properly.
When I have a chance I’ll send a PR with an improvement for the error handling method, I’d like to create a new prop like ‘onPdfError’ which gets a custom component I think this would be worth, what do you think?
Thanks a lot! 😄
Thanks for the mention… I have released the new version with the error handling, please have a look.