handlePsqlException

inline fun <R> handlePsqlException(psqlState: PSQLState, block: () -> R): Result<R>