Skip to content

v0.1.0-snapshot-1

Pre-release
Pre-release

Choose a tag to compare

@Wgpy66 Wgpy66 released this 04 Jul 01:36

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> from Result<'T, Errorx> and Errorx union type.
  • Some helper functions to create a error info quickly.
  • Some utilities for enrich error info.
  • Support casting Resultx<'T> to System.Exception and raise it.
  • Add Win32Utils module to get Win32 error information. (It only supports Windows.)
  • Add MethodHelper to 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 in async { ... } 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