HuginError
public enum HuginError : Error
The HuginError type enumerates the possible errors in the Hugin Swift API.
-
An API function was called with an invalid argument.
Declaration
Swift
case usage -
A fatal error occurred during an input or output operation. This could be a failure to open a specified file, a failure to create a file due to wrong permissions, a failure during a write operation due to the disk running full, etc.
Declaration
Swift
case io -
Hugin ran out of memory while carrying out some operation.
Declaration
Swift
case noMemory -
LIMIDs with CG nodes are not supported.
Declaration
Swift
case cgLimidsNotSupported -
An attempt has been made to assign a name that is already in use to a node or a class.
Declaration
Swift
case twice -
Names used for classes, nodes, and attributes must have the same form as a C identifier.
Declaration
Swift
case invalidName -
An attempt was made to create a cycle in the network.
Declaration
Swift
case cyclicNetwork -
The link could not be created as it would cause a cyclic dependency in the evaluation of function nodes.
Declaration
Swift
case cyclicFunctionalDependency -
A functional dependency was detected. Some Hugin API operations (including the SPU algorithm for LIMIDs) do not support such networks.
Declaration
Swift
case functionalDependency -
The true size is too large to represent within the `size_t’ type.
Declaration
Swift
case sizeTooLarge -
Logical relations in the distribution has caused a fast-retraction propagation to fail.
Declaration
Swift
case fastRetraction -
Possibly significant floating-point rounding error detected.
Declaration
Swift
case rounding -
The supplied password does not match the password stored in the Hugin KB file.
Declaration
Swift
case badKBPassword -
This Hugin KB file is not supported. That is, the file was produced by a version of the Hugin API that is either very old or newer than the version of this module.
Declaration
Swift
case badKBVersion -
This Hugin KB file is of the wrong type for this operation. A Hugin KB file contains either a domain or a class collection.
Declaration
Swift
case badKBType -
This file is not a valid Hugin KB file. Either the file is not a Hugin KB file, or the file has been damaged.
Declaration
Swift
case badKBFormat -
The operation requires a compiled domain.
Declaration
Swift
case notCompiled -
An invalid value or an invalid distribution was found in a probability potential or policy: Values must be nonnegative and finite, and the sum of values in a distribution must be positive and finite.
Declaration
Swift
case invalidProbabilityPotential -
Chain graph: Zero probability found in parent potential.
Declaration
Swift
case chainGraph -
The specified elimination sequence is invalid. Possible causes: It contains a utility or a real-valued function node, a node appears twice, the nodes are `out-of-order’, or the sequence is incomplete.
Declaration
Swift
case enumeration -
The junction tree potentials are invalid.
Declaration
Swift
case noEquilibrium -
The density of the evidence presented is too low to represent as a positive floating-point number.
Declaration
Swift
case lowDensity -
Zero variance detected during a conditioning operation.
Declaration
Swift
case zeroVariance -
Propagation of inconsistent evidence has been attempted, or underflow has occurred.
Declaration
Swift
case inconsistencyOrUnderflow -
Overflow occurred during propagation.
Declaration
Swift
case overflow -
This operation is not supported when the junction tree potentials have CG evidence incorporated.
Declaration
Swift
case cgEvidenceIncorporated -
Normalization with a zero (or underflowed) normalization constant has been attempted.
Declaration
Swift
case normalization -
The operation is not supported on compressed domains.
Declaration
Swift
case compressed -
The compressed version of some non-clique table is too large.
Declaration
Swift
case tableTooLarge -
The specified evidence violates the “free will” condition, or evidence on a decision node is not an instantiation.
Declaration
Swift
case invalidEvidence -
A case state index larger than 32767 has been specified.
Declaration
Swift
case caseStateTooLarge -
An error occurred during parsing.
Declaration
Swift
case parse(location: Int, message: String) -
The supplied expression is invalid (e.g., wrong type).
Declaration
Swift
case invalidExpression -
A syntax error has been detected while parsing an expression.
Declaration
Swift
case syntax -
Division by zero has been attempted.
Declaration
Swift
case divisionByZero -
Invalid arguments have been passed to a standard mathematical or probability/density function.
Declaration
Swift
case inappropriateArguments -
A probability/density function or a function value could not be computed.
Declaration
Swift
case computationFailed -
The state range of the node is insufficient for the chosen standard distribution.
Declaration
Swift
case insufficientStateRange -
The state values of a numeric node do not form an increasing sequence, or infinite values are used incorrectly.
Declaration
Swift
case invalidStateValues -
Cyclic hierarchies of class instances are not allowed.
Declaration
Swift
case cyclicInstanceHierarchy -
An actual input node is incompatible with the formal input node, or there are multiple occurrences of the same parent.
Declaration
Swift
case illegalBinding -
The Hugin API could not establish the C locale!
Declaration
Swift
case locale -
The license data is invalid (or could not be found).
Declaration
Swift
case invalidLicense -
The time limited license has expired.
Declaration
Swift
case expiredLicense -
The limits of this software have been exceeded (too many states or too many cases).
Declaration
Swift
case demo -
Undocumented
Declaration
Swift
case error(description: String) -
A method has been called on a “dead” object (i.e., the corresponding native object has been deleted).
Declaration
Swift
case notAlive(type: String) -
Undocumented
Declaration
Swift
public var description: String { get }
HuginError Enumeration Reference