HWRF
trunk@4391
|
Raised to indicate that a program generated an invalid return code. More...
Raised to indicate that a program generated an invalid return code.
Examine the "returncode" member variable for the returncode value. Negative values indicate the program was terminated by a signal while zero and positive values indicate the program exited. The highest exit status of the pipeline is returned when a pipeline is used.
For MPI programs, the exit status is generally unreliable due to implementation-dependent issues, but this package attempts to return the highest exit status seen. Generally, you can count on MPI implementations to return zero if you call MPI_Finalize() and exit normally, and non-zero if you call MPI_Abort with a non-zero argument. Any other situation will produce unpredictable results.
Public Member Functions | |
def | __init__ (self, message, status) |
ExitStatusException constructor. More... | |
def | status (self) |
An alias for self.returncode: the exit status. More... | |
def | __str__ (self) |
A string description of the error. More... | |
def | __repr__ (self) |
A pythonic description of the error for debugging. More... | |
Public Attributes | |
message | |
A string description for what went wrong. | |
returncode | |
The return code, including signal information. More... | |
def produtil.run.ExitStatusException.__init__ | ( | self, | |
message, | |||
status | |||
) |
ExitStatusException constructor.
message | a description of what went wrong |
status | the exit status |
def produtil.run.ExitStatusException.__repr__ | ( | self | ) |
def produtil.run.ExitStatusException.__str__ | ( | self | ) |
def produtil.run.ExitStatusException.status | ( | self | ) |
produtil.run.ExitStatusException.returncode |
The return code, including signal information.
Definition at line 206 of file run.py.
Referenced by produtil.run.ExitStatusException.__repr__(), produtil.run.ExitStatusException.__str__(), and produtil.run.ExitStatusException.status().