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

RobotWebTools / rclnodejs / 19233085834 / 1
81%
develop: 81%

Build:
DEFAULT BRANCH: develop
Ran 10 Nov 2025 05:04PM UTC
Files 44
Run time 29min
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.1

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 %.

2354 of 2711 relevant lines covered (86.83%)

457.55 hits per line

Source Files on job run-push-24.X-x64 - 19233085834.1
  • 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 Build 19233085834
  • bceb9a63 on github
  • Prev Job for on develop (#19065364717.1)
  • Next Job for on develop (#19285216030.1)
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

© 2026 Coveralls, Inc