Cola.Exception 3.0.0

dotnet add package Cola.Exception --version 3.0.0
                    
NuGet\Install-Package Cola.Exception -Version 3.0.0
                    
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="Cola.Exception" Version="3.0.0" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="Cola.Exception" Version="3.0.0" />
                    
Directory.Packages.props
<PackageReference Include="Cola.Exception" />
                    
Project file
For projects that support Central Package Management (CPM), copy this XML node into the solution Directory.Packages.props file to version the package.
paket add Cola.Exception --version 3.0.0
                    
#r "nuget: Cola.Exception, 3.0.0"
                    
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
#addin nuget:?package=Cola.Exception&version=3.0.0
                    
Install Cola.Exception as a Cake Addin
#tool nuget:?package=Cola.Exception&version=3.0.0
                    
Install Cola.Exception as a Cake Tool

Cola.CaException 异常类

1. 接口说明
/// <summary>
/// throw number>0
/// </summary>
/// <param name="i"></param>
/// <param name="errorMessage"></param>
/// <returns></returns>
Exception? ThrowGreaterThanZero(int i, string errorMessage);

/// <summary>
/// object is null
/// </summary>
/// <param name="obj"></param>
/// <typeparam name="T"></typeparam>
/// <returns></returns>
Exception? ThrowIfNull<T>(T obj);

/// <summary>
/// throw String Is NullOrEmpty
/// </summary>
/// <param name="str"></param>
/// <param name="exMessage"></param>
/// <returns></returns>
Exception? ThrowStringIsNullOrEmpty(string str, string exMessage);

/// <summary>
/// Throw Exception
/// </summary>
/// <param name="str"></param>
/// <returns></returns>
Exception ThrowException(string str);

/// <summary>
/// Throw Exception
/// </summary>
/// <param name="ex"></param>
/// <returns></returns>
Exception ThrowException(Exception ex);
Product Compatible and additional computed target framework versions.
.NET net8.0 is compatible.  net8.0-android was computed.  net8.0-browser was computed.  net8.0-ios was computed.  net8.0-maccatalyst was computed.  net8.0-macos was computed.  net8.0-tvos was computed.  net8.0-windows was computed.  net9.0 was computed.  net9.0-android was computed.  net9.0-browser was computed.  net9.0-ios was computed.  net9.0-maccatalyst was computed.  net9.0-macos was computed.  net9.0-tvos was computed.  net9.0-windows was computed. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

NuGet packages (4)

Showing the top 4 NuGet packages that depend on Cola.Exception:

Package Downloads
Cola.Core

Cola.Core.

Cola.Cache

Cola.Cache.

Cola.WebApi

Cola.WebApi.

Cola.EF

Cola.EF.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last updated
3.0.0 248 3/8/2025
2.0.0 239 3/7/2025
1.1.0 220 3/7/2025