parmed.tools.exceptions module¶
Exceptions used in parmed script
-
exception
parmed.tools.exceptions.FileDoesNotExist(msg='parmed error')[source]¶ Bases:
parmed.tools.exceptions.ParmError,OSError
-
exception
parmed.tools.exceptions.InputError[source]¶ Bases:
parmed.exceptions.ParmedErrorWhen there is an error with input
-
exception
parmed.tools.exceptions.ParmError(msg='parmed error')[source]¶ Bases:
parmed.exceptions.ParmedErrorBase parmed error
-
exception
parmed.tools.exceptions.ParmFileNotFound(msg='parmed error')[source]¶ Bases:
parmed.tools.exceptions.ParmError,FileNotFoundError
-
exception
parmed.tools.exceptions.ParmIndexError(msg='parmed error')[source]¶ Bases:
parmed.tools.exceptions.ParmError,IndexError
-
exception
parmed.tools.exceptions.ParmWarning(msg='parmed warning')[source]¶ Bases:
parmed.exceptions.ParmedWarningBase parmed warning
-
exception
parmed.tools.exceptions.ParmedError[source]¶ Bases:
ExceptionBase class for all non-trivial exceptions raised by ParmEd
-
exception
parmed.tools.exceptions.ParmedWarning[source]¶ Bases:
WarningBase class for all warnings raised by ParmEd
-
exception
parmed.tools.exceptions.SeriousParmWarning(msg='parmed warning')[source]¶ Bases:
parmed.tools.exceptions.ParmWarningThese warnings are more serious, and are fatal in strict operation
-
class
parmed.tools.exceptions.WarningList(empty_msg='No warnings found')[source]¶ Bases:
listList of warnings
Methods
append(*args)Append object to the end of the list.
clear(/)Remove all items from list.
copy(/)Return a shallow copy of the list.
count(value, /)Return number of occurrences of value.
dump([dest, ncols])Dump a list of all warnings to the destination
extend(*args)Append object to the end of the list.
index(value[, start, stop])Return first index of value.
insert(index, object, /)Insert object before index.
pop([index])Remove and return item at index (default last).
remove(value, /)Remove first occurrence of value.
reverse(/)Reverse IN PLACE.
sort(*[, key, reverse])Stable sort IN PLACE.
warn(msg[, exc_type])Adds a warning to the list
-
dump(dest=<_io.TextIOWrapper name='<stderr>' mode='w' encoding='UTF-8'>, ncols=80)[source]¶ Dump a list of all warnings to the destination
-
extend(*args)¶ Append object to the end of the list.
-