Closed cjdrake closed 10 years ago
Recently became familiar with the Google Python Style Guide.
The way they name exceptions is nice and simple. If some module needs to define an exception type, it's just named Error. Then you use it like except module.Error.
Error
except module.Error
This affects the following exceptions:
LexError => pyeda.parsing.lex.Error
LexCompileError => pyeda.parsing.lex.CompileError
LexRunError => pyeda.parsing.lex.RunError
BoolExprParseError => pyeda.parsing.boolexpr.Error
DIMACSError => pyeda.parsing.dimacs.Error
PLAError => pyeda.parsing.pla.Error
EspressoError => pyeda.boolalg.espresso.Error
PicosatError => pyeda.boolalg.picosat.Error
Recently became familiar with the Google Python Style Guide.
The way they name exceptions is nice and simple. If some module needs to define an exception type, it's just named
Error
. Then you use it likeexcept module.Error
.This affects the following exceptions:
LexError => pyeda.parsing.lex.Error
LexCompileError => pyeda.parsing.lex.CompileError
LexRunError => pyeda.parsing.lex.RunError
BoolExprParseError => pyeda.parsing.boolexpr.Error
DIMACSError => pyeda.parsing.dimacs.Error
PLAError => pyeda.parsing.pla.Error
EspressoError => pyeda.boolalg.espresso.Error
PicosatError => pyeda.boolalg.picosat.Error