armi.localization.exceptions module

Globally accessible exception definitions for better granularity on exception behavior and exception handling behavior

exception armi.localization.exceptions.RangeError(parameter, value, lower=None, upper=None)[source]

Bases: Exception

Exception for when a parameter is out of an acceptable range

exception armi.localization.exceptions.InvalidSelectionError(optionsName, selection, optionValues)[source]

Bases: Exception

Exception raised when an invalid value was provided when there is a finite set of valid options.

exception armi.localization.exceptions.CcccRecordError[source]

Bases: Exception

An error which occurs while reading or writing a CCCC record.

exception armi.localization.exceptions.ReactivityCoefficientNonExistentComponentsInRepresentativeBlock[source]

Bases: Exception

An error that can occur when getting Doppler or Temperature reactivity coefficients within the core.

Notes

This can occur when the requested component modification is applied to the core, but the representative blocks within the core do not represented the requested component. For example, if all the representative blocks are generated from fuel and a request to generate the Doppler coefficient for the grid plate is made it is likely that the fuel regions of the core do not have a grid plate component. Since no grid plate is represented by the cross section groupings, the effect on the cross sections cannot be evaluated.

exception armi.localization.exceptions.XSLibraryError[source]

Bases: Exception

An error which occurs while merging XSLibrary objects.

exception armi.localization.exceptions.XSGenerationError[source]

Bases: Exception

An error which occurs while merging XSLibrary objects.

exception armi.localization.exceptions.IsotxsError[source]

Bases: Exception

An error which occurs while reading, writing, or combining ISOTXS files.

exception armi.localization.exceptions.GamisoError[source]

Bases: Exception

An error which occurs while reading, writing, or combining GAMISO files.

exception armi.localization.exceptions.CompxsError[source]

Bases: Exception

An error which occures while reading, writing, or combining COMPXS files.

exception armi.localization.exceptions.PmatrxError[source]

Bases: Exception

An error which occurs while reading, writing, or combining PMATRX files.

exception armi.localization.exceptions.RMFluxPartisnError[source]

Bases: Exception

An error which occurs while reading, writing, or combining RMFLUX files.

exception armi.localization.exceptions.RZMFlxPartisnError[source]

Bases: Exception

An error which occurs while reading, writing, or combining RZMFLX files.

exception armi.localization.exceptions.StateError[source]

Bases: Exception

An error that occurs due to an action or method being invalid due to the state of the object.

exception armi.localization.exceptions.DeprecationError[source]

Bases: Exception

An error that occurs after a specific date

exception armi.localization.exceptions.ConsistencyError[source]

Bases: ValueError

Error raised when inputs are not consistent.

exception armi.localization.exceptions.NegativeComponentArea[source]

Bases: Exception

exception armi.localization.exceptions.NegativeComponentVolume[source]

Bases: Exception

exception armi.localization.exceptions.RunLogPromptCancel[source]

Bases: Exception

An error that occurs when the user submits a cancel on a runLog prompt which allows for cancellation

exception armi.localization.exceptions.RunLogPromptUnresolvable[source]

Bases: Exception

An error that occurs when the current mode enum in armi.__init__ suggests the user cannot be communicated with from the current process.

armi.localization.exceptions.raiseImportError(msg)[source]
exception armi.localization.exceptions.InputError(msg)[source]

Bases: Exception

AN error found in an ARMI input file.

property isFixable
fix(case)[source]
exception armi.localization.exceptions.InputInspectionRequired[source]

Bases: Exception

An error that occurs when some inputs have brought up concerns and the user is running in a non-interactive mode to respond

exception armi.localization.exceptions.InputInspectionDiscontinued[source]

Bases: Exception

An error that occurs when something interrupts the process of input inspection with the intent of not proceeding

exception armi.localization.exceptions.InputInspectionMalformed[source]

Bases: Exception

An error that occurs when the process of input inspection did not resolve all issues in the first pass

exception armi.localization.exceptions.SettingException(msg)[source]

Bases: Exception

Standardize behavior of setting-family errors

exception armi.localization.exceptions.InvalidSettingsStopProcess(reader)[source]

Bases: armi.localization.exceptions.SettingException

Exception raised when setting file contains invalid settings and user aborts or process is uninteractive

exception armi.localization.exceptions.NonexistentSetting(setting)[source]

Bases: armi.localization.exceptions.SettingException

Exception raised when a non existent setting is asked for

exception armi.localization.exceptions.SettingNameCollision(msg)[source]

Bases: armi.localization.exceptions.SettingException

Exception raise when a setting has already been given the same case-insensitive name

exception armi.localization.exceptions.InvalidSettingDefinition(name, attrs)[source]

Bases: armi.localization.exceptions.SettingException

Exception raised when specials cannot be processed in settings file

exception armi.localization.exceptions.NonexistentSettingsFileError(path)[source]

Bases: armi.localization.exceptions.SettingException

Settings file does not exist

exception armi.localization.exceptions.InvalidSettingsFileError(path, customMsgEnd='')[source]

Bases: armi.localization.exceptions.SettingException

Not a valid xml or settings file

exception armi.localization.exceptions.InvalidSettingsFileContentsError(path, lastSetting=None, exact_message=None)[source]

Bases: armi.localization.exceptions.SettingException

Some setting doesn’t obey the system

exception armi.localization.exceptions.NoDataModelInDatabaseException(msg)[source]

Bases: Exception

exception armi.localization.exceptions.ComponentLinkingFailure[source]

Bases: Exception

exception armi.localization.exceptions.SynchronizationError[source]

Bases: Exception