v0.1.0-snapshot-1
Pre-release
Pre-release
v0.1.0-snapshot-1 - Initial Release
Warning
Snapshot Version
This is a pre-release snapshot. Some APIs may change without notice.
Introduction
A F# library for error handling. Make error handling easily,
Core Features
- Provides a type alias
Resultx<'T>fromResult<'T, Errorx>andErrorxunion type. - Some helper functions to create a error info quickly.
- Some utilities for enrich error info.
- Support casting
Resultx<'T>toSystem.Exceptionand raise it. - Add
Win32Utilsmodule to get Win32 error information. (It only supports Windows.) - Add
MethodHelperto format current method's full name.
Supported .NET Versions
.NET 5.0 ~ .NET 10.0
Known issues
MethodHelper.getCurrentMethodFullName()will return wrong method full name inasync { ... }block and so on, because compiler will compile them into state machine. It returns like[Namespace.Class]::doWorkAsync@57, not[Namespace.Class]::doWorkAsync.
Download
Download the package source file or source code from assets below.
| File Name | SHA256 |
|---|---|
PCT.ErrorHandling.0.1.0-snapshot-1.nupkg |
7AEB15C24205281CCC32A3729366A50A8417B769FC2C20E33C70E7862712AEA7 |