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" />
<PackageReference Include="Cola.Exception" />
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
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
#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
#tool nuget:?package=Cola.Exception&version=3.0.0
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
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 | Versions 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.
-
net8.0
- Cola.Console (>= 3.0.0)
- Cola.Log (>= 3.0.0)
- Microsoft.Extensions.DependencyInjection (>= 8.0.0)
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.