• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

RobotWebTools / rclnodejs / 19233085834
81%

Build:
DEFAULT BRANCH: develop
Ran 10 Nov 2025 01:33PM UTC
Jobs 1
Files 44
Run time 39min
Badge
Embed ▾
README BADGES
x

If you need to use a raster PNG badge, change the '.svg' to '.png' in the link

Markdown

Textile

RDoc

HTML

Rst

10 Nov 2025 01:22PM UTC coverage: 83.023% (+0.3%) from 82.711%
19233085834

push

github

web-flow
feat: add structured error handling with class error hierarchy (#1320)

**Public API Changes**
**Added 21 new error classes** (all exported from `rclnodejs`):

**Base:**
- `RclNodeError` - Base class with rich context (code, nodeName, entityType, timestamp, details, toJSON())

**Validation Errors:**
- `ValidationError`
- `TypeValidationError` (includes `argumentName`, `providedValue`, `expectedType`)
- `RangeValidationError` (includes `argumentName`, `providedValue`, `validationRule`)
- `NameValidationError` (includes `invalidName`, `nameType`)

**Operation Errors:**
- `OperationError`
- `TimeoutError` (includes `timeoutMs`)
- `AbortError` (includes `reason`)
- `ServiceNotFoundError` (includes `serviceName`)
- `NodeNotFoundError` (includes `nodeName`)

**Parameter Errors:**
- `ParameterError`
- `ParameterNotFoundError` (includes `parameterName`, `remoteNodeName`)
- `ParameterTypeError` (includes `parameterName`, `expectedType`, `actualType`)
- `ReadOnlyParameterError` (includes `parameterName`)

**Topic/Action Errors:**
- `TopicError`, `PublisherError`, `SubscriptionError`
- `ActionError`, `GoalRejectedError`, `ActionServerNotFoundError`

**Native Errors:**
- `NativeError` (wraps C++ errors with `nativeMessage`, `operation`)

**Breaking (but backward compatible):**
- Existing methods now throw specific error types instead of generic `TypeError`/`Error`/`RangeError`
- All new errors extend `Error`, so existing `catch (error)` blocks still work
- Users can now catch specific error types for better error handling (e.g., `catch (error) { if (error instanceof rclnodejs.TimeoutError) ... }`)

1030 of 1365 branches covered (75.46%)

Branch coverage included in aggregate %.

161 of 239 new or added lines in 25 files covered. (67.36%)

2354 of 2711 relevant lines covered (86.83%)

457.55 hits per line

New Missed Lines in Diff

Lines Coverage ∆ File
1
89.47
0.06% lib/action/server.js
1
91.3
0.4% lib/action/uuid.js
1
91.27
1.34% lib/client.js
1
90.48
0.48% lib/clock.js
1
84.21
0.09% lib/lifecycle.js
1
55.34
0.44% lib/message_serialization.js
1
85.71
0.06% lib/parameter_client.js
1
93.94
0.19% lib/rate.js
1
61.54
0.33% lib/utils.js
2
77.27
1.08% lib/action/deferred.js
2
81.25
0.24% lib/context.js
2
75.21
0.21% lib/event_handler.js
2
47.83
0.57% lib/native_loader.js
2
73.33
1.9% lib/serialization.js
2
57.76
0.37% lib/time_source.js
3
88.46
0.23% lib/duration.js
3
87.3
0.1% lib/interface_loader.js
3
71.19
0.5% lib/logging.js
4
82.22
-0.39% lib/validator.js
6
85.64
0.07% lib/action/client.js
10
82.91
-0.57% lib/time.js
13
87.51
-0.42% lib/node.js
15
75.66
-0.31% lib/parameter.js
Jobs
ID Job ID Ran Files Coverage
1 run-push-24.X-x64 - 19233085834.1 10 Nov 2025 01:33PM UTC 44
83.02
GitHub Action Run
Source Files on build 19233085834
  • Tree
  • List 44
  • Changed 24
  • Source Changed 24
  • Coverage Changed 24
Coverage ∆ File Lines Relevant Covered Missed Hits/Line Branch Hits Branch Misses
  • Back to Repo
  • Github Actions Build #19233085834
  • bceb9a63 on github
  • Prev Build on develop (#19065364717)
  • Next Build on develop (#19285216030)
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2025 Coveralls, Inc