exceptions

A module containing different exceptions related to the core subpackage.

Summary

Exceptions:

AtomicSystemError

Exception raised for errors related to the AtomicSystem class

AtomicSystemMassError

Exception raised if atoms do not contain mass information

AtomicSystemPositionsError

Exception raised if atoms is not of the same length as positions

Reference

exception AtomicSystemError(message: str)[source]

Bases: PQException

Exception raised for errors related to the AtomicSystem class

Parameters:

message (str) – The error message.

exception AtomicSystemMassError(message: str | None = None)[source]

Bases: AtomicSystemError

Exception raised if atoms do not contain mass information

Parameters:

message (str) – The error message.

message = 'AtomicSystem contains atoms without mass information. Which is required for this operation.'
exception AtomicSystemPositionsError(
message: str | None = None,
)[source]

Bases: AtomicSystemError

Exception raised if atoms is not of the same length as positions

Parameters:

message (str) – The error message.

message = 'Atoms and positions must be of the same length.'