CenterForDigitalHumanities / CenterForDigitalHumanities/TPEN-services

Error Handling and Throwing with databaseTiny

Open
#463 0 comments 0 reactions 0 assignees View on GitHub
core-functionality enhancement
Dominant language
JavaScript
Stars
2
Forks
0
PR merge metrics
No merged PRs in 30d

Description

Investigate how errors are caught, handled, or thrown in database/tiny/controller.js.

Then investigate the databaseTiny usages in the following files
- classes/Layer/Layer.js
- classes/Page/Page.js
- classes/Line/Line.js
- utilities/shared.js

Errors should be caught, handled, and thrown forward consistently so that routes can respond to clients according to RESTful best practices.

Contributor guide

Open the contributing guide

Research direction

Start by reading database/tiny/controller.js, then trace databaseTiny usage in classes/Layer/Layer.js, classes/Page/Page.js, classes/Line/Line.js, and utilities/shared.js. Compare how each location catches, handles, or forwards errors and identify the existing route response flow. Done means error behavior is consistent across these usages and routes respond according to the stated RESTful expectations.

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript
Domain
api, backend, databases
Issue type
Refactor
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.