Subclass psycopg2 exception and re-raise a custom instance

后端 未结 0 1092
梦毁少年i
梦毁少年i 2021-02-06 05:07

I\'d like to be able to extend psycopg2.DatabaseError and perform the following handling:

  • catch psycopg2.DatabaseError in my code
  • check some a
相关标签:
回答
  • 消灭零回复
提交回复
热议问题