Skip to content
GitLab
  • Menu
Projects Groups Snippets
  • /
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in / Register
  • H HAfAH
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Issues 4
    • Issues 4
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 2
    • Merge requests 2
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
  • Deployments
    • Deployments
    • Environments
    • Releases
  • Packages & Registries
    • Packages & Registries
    • Package Registry
    • Container Registry
    • Infrastructure Registry
  • Monitor
    • Monitor
    • Incidents
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • hive
  • HAfAH
  • Issues
  • #21
Closed
Open
Created Mar 04, 2022 by Bartek Wrona@bwronaOwner0 of 2 tasks completed0/2 tasks

Improve error handling at SQL side (use RAISE EXCEPTION WITH ERRORCODE) to simplify client-side integration.

The following discussions from !14 (merged) should be addressed:

  • @bwrona started a discussion:

    Why InternalError exception class is used here ? What if some other exception will be raised (i.e. StatementError)

  • @bwrona started a discussion:

    Probably RAISE EXCEPTION ... WITH ERRORCODE should be used to introduce custom class of exceptions and exact codes for each case. Then they could be much better recognized and wrapped at SQL client side.

    See usage here: https://gitlab.syncad.com/hive/hivemind/-/blob/develop/hive/db/sql_scripts/utility_functions.sql#L46

Assignee
Assign to
Time tracking