
Security News
Open Source Maintainers Feeling the Weight of the EU’s Cyber Resilience Act
The EU Cyber Resilience Act is prompting compliance requests that open source maintainers may not be obligated or equipped to handle.
@ydbjs/error
Advanced tools
Error utilities for YDB: error classification, rich messages, and TypeScript support for robust error handling in YDB applications.
The @ydbjs/error
package provides utilities for handling YDB-specific errors in JavaScript/TypeScript applications. It simplifies error classification and provides detailed error messages for better debugging and troubleshooting.
Install the package using npm:
npm install @ydbjs/error@6.0.0-alpha.2
import { YDBError } from '@ydbjs/error';
import { StatusIds_StatusCode } from '@ydbjs/api/operation';
try {
throw new YDBError(StatusIds_StatusCode.ABORTED, [
{ severity: 0, issueCode: 14, message: 'Some error message' },
]);
} catch (error) {
if (error instanceof YDBError) {
console.error('YDB Error:', error.message);
console.error('Error Code:', error.code);
}
}
npm run build
npm test
For watch mode during development:
npm run test:watch
This project is licensed under the Apache 2.0 License.
FAQs
Error utilities for YDB: error classification, rich messages, and TypeScript support for robust error handling in YDB applications.
We found that @ydbjs/error demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
The EU Cyber Resilience Act is prompting compliance requests that open source maintainers may not be obligated or equipped to handle.
Security News
Crates.io adds Trusted Publishing support, enabling secure GitHub Actions-based crate releases without long-lived API tokens.
Research
/Security News
Undocumented protestware found in 28 npm packages disrupts UI for Russian-language users visiting Russian and Belarusian domains.