finesse.exceptions

Custom exception types raised by different Finesse functions and class methods.

Classes

BeamTraceException(message, **kwargs)

ComponentNotConnected(message, **kwargs)

ContextualArgumentError(message, **kwargs)

An argument error with additional context.

ContextualTypeError(param, value[, ...])

A type error with additional information about the available types.

ContextualValueError(params[, extra_info])

A value error with additional information about value(s) that caused an error.

ConvergenceException(message, **kwargs)

Indicates an algorithm has failed to converge to some requested tolerance.

FinesseException(message, **kwargs)

The exception type which gets raised upon a Finesse failure.

ModelAttributeError(model, pieces)

Error indicating a model path was not found.

ModelParameterDefaultValueError(element)

Error indicating a model element has no default model parameter.

ModelParameterSelfReferenceError(value, ...)

Error indicating a model parameter cannot be set to refer to itself.

NoLinearEquations(message, **kwargs)

Thrown when a simulation has no linear equations to solve.

NodeException(message[, node])

Exception associated with Node related run-time errors.

ParameterLocked(message, **kwargs)

TotalReflectionError(message[, from_node, ...])

Exception indicating total reflection of a beam at a component when performing beam tracing.