mike820324 / ComicSearchEngine

A simple node implementation that help search the comic you want.
MIT License
0 stars 0 forks source link

add isErrorPage method in parser #6

Open mike820324 opened 9 years ago

mike820324 commented 9 years ago

as title suggest, each parser should have a isErrorPage method instead of using try/catch in crawl method.

mike820324 commented 9 years ago

current error handling still not enough. when crawling mh.99770.cc, it will still stop with undefined exception type'

mike820324 commented 9 years ago

it turns out that I only add parser error handling in dmeden parser. The newest commit should add proper error handling in other parsers.