exceptions

Specific exceptions that can be raised by the TudatPy library.

Classes

TudatError(message)

Base Error thrown by Tudat.

InterpolationOutOfBoundsError(message, ...)

Error thrown when the independent variable data point is out of the bounds of the data to be interpolated.

LagrangeInterpolationOutOfBoundsError(...)

Error thrown when the independent variable data point of a Lagrange interpolation is outside the reliable bounds of the data to be interpolated.

MaximumIterationsExceededError(message, ...)

Error thrown when the maximum number of iterations of an iterative operation is exceeded.

exception TudatError(message: str)

Bases: RuntimeError

Base Error thrown by Tudat.

exception InterpolationOutOfBoundsError(message: str, requested_value: float, lower_bound: float, upper_bound: float)

Bases: TudatError

Error thrown when the independent variable data point is out of the bounds of the data to be interpolated.

message

The error message.

Type:

str

requested_value

The requested value that is out of bounds.

Type:

float

lower_bound

The lower bound of the data to be interpolated.

Type:

float

upper_bound

The upper bound of the data to be interpolated.

Type:

float

exception LagrangeInterpolationOutOfBoundsError(message: str, requested_value: float, lower_bound: float, upper_bound: float)

Bases: InterpolationOutOfBoundsError

Error thrown when the independent variable data point of a Lagrange interpolation is outside the reliable bounds of the data to be interpolated. For more information, see lagrange_interpolation().

message

The error message.

Type:

str

requested_value

The requested value that is outside the reliable bounds.

Type:

float

lower_bound

The lower bound of the data that can be reliably interpolated.

Type:

float

upper_bound

The upper bound of the data that can be reliably interpolated.

Type:

float

exception MaximumIterationsExceededError(message: str, number_of_iterations: int, maximum_number_of_iterations: int)

Bases: TudatError

Error thrown when the maximum number of iterations of an iterative operation is exceeded.

message

The error message.

Type:

str

number_of_iterations

The number of iterations that have been completed.

Type:

int

maximum_number_of_iterations

The maximum number of iterations that was specified.

Type:

int

exception StepSizeViolationError(message: str)

Bases: TudatError

Error thrown when the step size in a numerical integration is not valid.

exception MinimumStepSizeViolatedError(message: str, minimum_step_size: float, recommended_step_size: float)

Bases: StepSizeViolationError

Error thrown when the step size requested by the step size controller is smaller than the defined minimum step size in a numerical integration.

message

The error message.

Type:

str

minimum_step_size

The minimum step size that is allowed.

Type:

float

recommended_step_size

The step size recommended by the stepsize controller, which is smaller than the minimum step size.

Type:

float