<scripttype="application/ld+json">{"@context":"https://schema.org","@type":"Article","headline":"Exceptions","image":[""],"dateModified":"2026-06-28T18:25:20.000Z","author":[]}</script><metaproperty="og:url" content="https://psqlpy-python.github.io/components/exceptions.html"><metaproperty="og:site_name" content="PSQLPy"><metaproperty="og:title" content="Exceptions"><metaproperty="og:description" content="We have a lot of exceptions for different situations. They are split into different subclasses for ConnectionPool, Connection, Transaction and Cursor. You can use them to define..."><metaproperty="og:type" content="article"><metaproperty="og:locale" content="en-US"><metaproperty="og:updated_time" content="2026-06-28T18:25:20.000Z"><metaproperty="article:modified_time" content="2026-06-28T18:25:20.000Z"><title>Exceptions | PSQLPy</title><metaname="description" content="We have a lot of exceptions for different situations. They are split into different subclasses for ConnectionPool, Connection, Transaction and Cursor. You can use them to define...">