TaxErrors
public enum TaxErrors : Error
extension TaxErrors: LocalizedError
Errors which can occur when using the TaxCalulator
-
One tax slip has entries without and with symbols at the same time
values are tax slip name, tax year and issuer
Declaration
Swift
case entriesWithAndWithoutSymbol(String, Int, String?)
-
When no tax slip was configured in the ledger meta data (value is the year)
Declaration
Swift
case noTaxSlipConfigured(Int)
-
When a tax slip has no currency defined (values are tax slip name and tax year)
Declaration
Swift
case noCurrencyDefined(String, Int)
-
When a transaction has a split account and more then one other tax split relevant account, and these accounts have different symbols
Declaration
Swift
case splitAccountDifferentSymbols(String, String, String)
-
Declaration
Swift
public var errorDescription: String? { get }