
Security News
The Hidden Blast Radius of the Axios Compromise
The Axios compromise shows how time-dependent dependency resolution makes exposure harder to detect and contain.
RecordException
Advanced tools
Simple package which allows C# records to inherit from Exception through the RecordException type.
records inheriting from ExceptionInstall from NuGet: dotnet add package RecordException
Then define your exceptions like this:
using RecordExceptions;
public record MissingIdException(int id): RecordException;
The exception message will automatically be MissingIdException: id = {id}.
Probably fine for debugging, but if you want to customize that, you can:
public record MissingIdException(int id): RecordException
{
public override string Message => $"Id {id} is missing";
}
The message may also be specified in the construtor:
public record OperationCancelledException: RecordException("User has cancelled the operation.")
You can also wrap exception into InnerException, it might be useful for adding relevant information:
public record SomethingBad(Exception InnerException): RecordException("Something really bad has happened", InnerException);
Notes:
x with { Prop = newValue } syntax to work.public override string ToString() => base.ToString();.License is MIT, so you can use it however you want to. If you need a record inheriting from another class, feel free to fork this repo.
FAQs
Simple package which allows C# records to inherit from Exception through the RecordException type.
We found that recordexception demonstrated a not healthy version release cadence and project activity because the last version was released 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 Axios compromise shows how time-dependent dependency resolution makes exposure harder to detect and contain.

Research
A supply chain attack on Axios introduced a malicious dependency, plain-crypto-js@4.2.1, published minutes earlier and absent from the project’s GitHub releases.

Research
Malicious versions of the Telnyx Python SDK on PyPI delivered credential-stealing malware via a multi-stage supply chain attack.