pyderman icon indicating copy to clipboard operation
pyderman copied to clipboard

Define errors and replace `Exception` with them

Open eggplants opened this issue 3 years ago • 1 comments

This package often uses Exception class when raising an error. But I suggest to replace them with more precise, detail, and internal Error classes like pyderman.Error.BrowserError to make easy to handle properly.

eggplants avatar Apr 27 '22 19:04 eggplants

Good idea. Generally any error raised signifies that this library has failed, but it would certainly be better to add more context there.

shadowmoose avatar Apr 27 '22 21:04 shadowmoose