3.10.1.10. opengate.exception

3.10.1.10.1. Attributes

color_error

color_warning

color_ok

3.10.1.10.2. Exceptions

GateDeprecationError

Raise this if a deprecated feature is used.

GateFeatureUnavailableError

Raise this if a feature is used that is (currently) unavailable.

GateImplementationError

Raise this if a feature is used that is (currently) unavailable.

3.10.1.10.3. Classes

ExceptionHandler

Geant4 exception handler. Inherit form GateExceptionHandler

3.10.1.10.4. Functions

fatal(s)

warning(s)

raise_except(s)

3.10.1.10.5. Module Contents

exception opengate.exception.GateDeprecationError[source]

Bases: Exception

Raise this if a deprecated feature is used. Provide the user with information on how to update their code.

exception opengate.exception.GateFeatureUnavailableError[source]

Bases: Exception

Raise this if a feature is used that is (currently) unavailable. Ideally, provide the user with information about alternatives. Can be used as temporary workaround during refactorings.

exception opengate.exception.GateImplementationError[source]

Bases: Exception

Raise this if a feature is used that is (currently) unavailable. Ideally, provide the user with information about alternatives. Can be used as temporary workaround during refactorings.

opengate.exception.color_error[source]
opengate.exception.color_warning[source]
opengate.exception.color_ok[source]
opengate.exception.fatal(s)[source]
opengate.exception.warning(s)[source]
opengate.exception.raise_except(s)[source]
class opengate.exception.ExceptionHandler[source]

Bases: opengate_core.GateExceptionHandler

Geant4 exception handler. Inherit form GateExceptionHandler The function ‘Notify’ will be called by G4 when an exception occurs. Should be created after initialization. Will be automatically stored in the G4 stateManager

Notify(originOfException, exceptionCode, severity, description)[source]