Class SanitizedException
- Namespace
- AnyProtocol.Logging.Abstraction
- Assembly
- AnyProtocol.Logging.Abstraction.dll
Contains exception metadata safe to include in a default log message.
public sealed record SanitizedException : IEquatable<SanitizedException>
- Inheritance
-
SanitizedException
- Implements
- Inherited Members
Constructors
SanitizedException(string, string?)
Contains exception metadata safe to include in a default log message.
public SanitizedException(string Type, string? Summary)
Parameters
Properties
Summary
public string? Summary { get; init; }
Property Value
Type
public string Type { get; init; }
Property Value
Methods
Deconstruct(out string, out string?)
public void Deconstruct(out string Type, out string? Summary)
Parameters
Equals(SanitizedException?)
public bool Equals(SanitizedException? other)
Parameters
otherSanitizedException
Returns
Equals(object?)
public override bool Equals(object? obj)
Parameters
objobject
Returns
GetHashCode()
public override int GetHashCode()
Returns
ToString()
public override string ToString()
Returns
Operators
operator ==(SanitizedException?, SanitizedException?)
public static bool operator ==(SanitizedException? left, SanitizedException? right)
Parameters
leftSanitizedExceptionrightSanitizedException
Returns
operator !=(SanitizedException?, SanitizedException?)
public static bool operator !=(SanitizedException? left, SanitizedException? right)
Parameters
leftSanitizedExceptionrightSanitizedException