
Security News
Attackers Are Hunting High-Impact Node.js Maintainers in a Coordinated Social Engineering Campaign
Multiple high-impact npm maintainers confirm they have been targeted in the same social engineering campaign that compromised Axios.
@megaorm/errors
Advanced tools
This package provides custom error classes for handling transaction, connection, and queue management issues in MegaORM.
This package provides custom error classes for handling transaction, connection, and queue management issues in MegaORM, providing a consistent way to report failures.
To install the @megaorm/errors package, run the following command:
npm install @megaorm/errors
This package defines the following error classes:
new BeginTransactionError(message?: string)
Represents an error that occurs when starting a database transaction.
new CommitTransactionError(message?: string)
Represents an error that occurs when committing a database transaction.
new RollbackTransactionError(message?: string)
Represents an error that occurs when rolling back a database transaction.
new CloseConnectionError(message?: string)
Represents an error that occurs when closing a database connection.
new CreateConnectionError(message?: string)
Represents an error that occurs when creating a database connection.
new MaxConnectionError(message?: string)
Represents an error when the maximum number of database connections is exceeded.
new MaxQueueSizeError(message?: string)
Represents an error when the maximum queue size is exceeded.
new MaxQueueTimeError(message?: string)
Represents an error when the maximum allowed queue time is exceeded.
new QueryError(message?: string)
Represents an error that occurs during query execution.
new ShutdownError(message?: string)
Represents an error that occurs during shutdown.
Each error class has a default message that is used if no custom message is provided. Below are the default messages for each error:
BeginTransactionError: 'Begin transaction failed'CommitTransactionError: 'Commit transaction failed'RollbackTransactionError: 'Rollback transaction failed'CloseConnectionError: 'Close connection failed'CreateConnectionError: 'Create connection failed'MaxConnectionError: 'Max number of connections passed'MaxQueueSizeError: 'Max queue size passed'MaxQueueTimeError: 'Max queue time passed'QueryError: 'Query execution failed'ShutdownError: 'Shutdown failed'FAQs
This package provides custom error classes for handling transaction, connection, and queue management issues in MegaORM.
We found that @megaorm/errors demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 0 open source maintainers 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
Multiple high-impact npm maintainers confirm they have been targeted in the same social engineering campaign that compromised Axios.

Security News
Axios compromise traced to social engineering, showing how attacks on maintainers can bypass controls and expose the broader software supply chain.

Security News
Node.js has paused its bug bounty program after funding ended, removing payouts for vulnerability reports but keeping its security process unchanged.