Class UnitIsNotSupportedException
- Namespace
- xFunc.Maths.Expressions.Units
- Assembly
- xFunc.Maths.dll
Represents the exception that is thrown when converter uses unsupported unit.
[Serializable]
public class UnitIsNotSupportedException : Exception, ISerializable
- Inheritance
-
UnitIsNotSupportedException
- Implements
- Inherited Members
Constructors
UnitIsNotSupportedException(string?)
Initializes a new instance of the UnitIsNotSupportedException class.
public UnitIsNotSupportedException(string? unit)
Parameters
unit
stringThe unsupported unit.
UnitIsNotSupportedException(string?, Exception?)
Initializes a new instance of the UnitIsNotSupportedException class.
public UnitIsNotSupportedException(string? unit, Exception? inner)
Parameters
unit
stringThe unsupported unit.
inner
ExceptionThe exception that is the cause of the current exception, or a null reference if no inner exception is specified.
Properties
Unit
Gets the unsupported unit.
public string? Unit { get; }