| |
- ACSErr.Completion(omniORB.StructBase)
-
- ArgErrorCompletionImpl(ACSErr.Completion, Acspy.Common.Err.ACSError)
- InvalidIDCompletionImpl(ACSErr.Completion, Acspy.Common.Err.ACSError)
- OverflowOrUnderflowCompletionImpl(ACSErr.Completion, Acspy.Common.Err.ACSError)
- ACSTimeError.ArgErrorEx(omniORB.CORBA.UserException)
-
- ArgErrorExImpl(ACSTimeError.ArgErrorEx, Acspy.Common.Err.ACSError, BaseException)
- ACSTimeError.InvalidIDEx(omniORB.CORBA.UserException)
-
- InvalidIDExImpl(ACSTimeError.InvalidIDEx, Acspy.Common.Err.ACSError, BaseException)
- ACSTimeError.OverflowOrUnderflowEx(omniORB.CORBA.UserException)
-
- OverflowOrUnderflowExImpl(ACSTimeError.OverflowOrUnderflowEx, Acspy.Common.Err.ACSError, BaseException)
- BaseException
-
- ArgErrorExImpl(ACSTimeError.ArgErrorEx, Acspy.Common.Err.ACSError, BaseException)
- InvalidIDExImpl(ACSTimeError.InvalidIDEx, Acspy.Common.Err.ACSError, BaseException)
- OverflowOrUnderflowExImpl(ACSTimeError.OverflowOrUnderflowEx, Acspy.Common.Err.ACSError, BaseException)
- Acspy.Common.Err.ACSError(Acspy.Common.ErrorTrace.ErrorTraceHelper)
-
- ArgErrorCompletionImpl(ACSErr.Completion, Acspy.Common.Err.ACSError)
- ArgErrorExImpl(ACSTimeError.ArgErrorEx, Acspy.Common.Err.ACSError, BaseException)
- InvalidIDCompletionImpl(ACSErr.Completion, Acspy.Common.Err.ACSError)
- InvalidIDExImpl(ACSTimeError.InvalidIDEx, Acspy.Common.Err.ACSError, BaseException)
- OverflowOrUnderflowCompletionImpl(ACSErr.Completion, Acspy.Common.Err.ACSError)
- OverflowOrUnderflowExImpl(ACSTimeError.OverflowOrUnderflowEx, Acspy.Common.Err.ACSError, BaseException)
class ArgErrorCompletionImpl(ACSErr.Completion, Acspy.Common.Err.ACSError) |
|
Some form of custom documentation goes here... |
|
- Method resolution order:
- ArgErrorCompletionImpl
- ACSErr.Completion
- omniORB.StructBase
- Acspy.Common.Err.ACSError
- Acspy.Common.ErrorTrace.ErrorTraceHelper
- __builtin__.object
Methods defined here:
- __init__(self, nvSeq=None, exception=None, create=1, severity=None)
- Constructor
An instance of this class is derived from ACSErr.Completion.
It provides many helper methods from Acspy.Common.Err.
There are three different combinations of keyword parameter
uses that make sense here:
__init__()
Using the default values creates a new Completion which
does not include any previous error traces
__init__(exception=acsException)
Specifying a previous ACS Error System exception without
changing the value of create creates a new Completion which
does in fact include previous error traces from
acsException.
__init__(exception=acsException, create=0)
Used to reconstruct acsException without adding any
new error trace information.
nvSeq default keyword parameter
This sequence of name/values is only used when a new
Completion is being created. In simple terms, the only
time you can use it is when the create keyword parameter
has the value of 1
severity default keyword parameter
This CORBA type corresponds to ACSErr.Severity. The
only time you can use it is when the create keyword parameter
has the value of 1
Parameters:
- nvSeq is a sequence of ACSErr.NameValue pairs used to add
additional information about the Completion. Only used when
create has a value of 1
- exception is an ACS Error System based CORBA exception.
Provide this to extract previous error trace information and put this into
the new object being constructed
- create is a boolean value which defines whether or not traceback
information should be extracted from the call to create this Completion
and added to it's error trace. If you're simply trying to recreate
a remote CORBA exception locally and figure out
what went wrong most likely you want create to have a value of 0.
However, if you intend on returning the Completion a value of 1 makes
more sense.
- severity is used to set the severity of the completion. Only used when
create has a value of 1/True
Methods inherited from omniORB.StructBase:
- __repr__(self)
Data descriptors inherited from omniORB.StructBase:
- __dict__
- dictionary for instance variables (if defined)
- __weakref__
- list of weak references to the object (if defined)
Methods inherited from Acspy.Common.Err.ACSError:
- getErrorTrace(self)
- Overridden
- setErrorTrace(self, et_obj)
- Sets the member error trace
Parameters: et_obj is an ACSErr.ErrorTrace instances
Returns: Nothing
Raises: Nothing
Methods inherited from Acspy.Common.ErrorTrace.ErrorTraceHelper:
- Print(self)
- Prints errortrace information to standard out.
Parameters: None
Returns: Nothing
Raises: Nothing
- addData(self, name, value)
- Adds data to the current error
Parameters: name and value will both be converted to strings.
Returns: Nothing
Raises: Nothing
- errorTraceToString(self, error_trace, ws)
- Converts an error trace to a human-readable string.
Parameters: error_trace is an errortrace
ws is whitespace
Returns: Nothing
Raises: Nothing
- getData(self, name)
- Gets previously set data from the ErrorTrace.
Parameters: name of the data as defined by the addData method
Returns: a list of previously set data (stringified) with the matching
name. This list can be empty if there are no matches
Raises: Nothing
- getDescription(self)
- Returns copy of description of current error.
Parameters: None
Returns: Nothing
Raises: Nothing
- getErrorCode(self)
- Returns error code
Parameters: None
Returns: error code
Raises: Nothing
- getErrorType(self)
- Returns error type
Parameters: None
Returns: error type
Raises: Nothing
- getFileName(self)
- Returns file name information of the error
Parameters: None
Returns: filename
Raises: Nothing
- getHostName(self)
- Returns host name information of the error
Parameters: None
Returns: hostname
Raises: Nothing
- getLineNumber(self)
- Returns line number information of the error
Parameters: None
Returns: line number
Raises: Nothing
- getNext(self)
- Moves to the next errortrace element and returns a reference to it.
Parameters: None
Returns: the next errortrace element or None if it does not exist
Raises: Nothing
- getProcess(self)
- Returns process information of the error. Its name or process ID.
Parameters: None
Returns: Process ID
Raises: Nothing
- getRoutine(self)
- Returns routine information of the error
Parameters: None
Returns: routine name
Raises: Nothing
- getSeverity(self)
- Returns error severity
Parameters: None
Returns: Severity
Raises: Nothing
- getThread(self)
- Returns thread information of the error. The name of thread or its ID.
Parameters: None
Returns: Thread ID
Raises: Nothing
- getTimeStamp(self)
- Returns time stamp of the error in 100th of nanoseconds.
Parameters: None
Returns: time stamp
Raises: Nothing
- isOK(self)
- Returns 1 if errortrace does not represent error otherwise 0.
Parameters: None
Returns: 0 or 1
Raises: Nothing
- log(self, logger, priority=ACS_LOG_ERROR)
- Logs errortrace information into the ACS logging system.
Parameters:
- priorty which will be used for logging the error
Returns: Nothing
Raises: Nothing
- printET(self, error_trace, ws)
- Prints one error trace to standard out.
Parameters: et is an errortrace
ws is whitespace
Returns: Nothing
Raises: Nothing
- setData(self, name, value)
- Sets data within the ErrorTrace, adding it if it has not been
previously set.
Parameters: name and value will both be converted to strings.
Returns: Nothing
Raises: Nothing
- setError(self, error_code=None, error_type=None)
- Sets the error type/code
Parameters: self-explanatory
Returns: Nothing
Raises: ValueError if invalid parameters are given
- setFileName(self, file_name)
- Sets file name
Parameters: name of the file
Returns: Nothing
Raises: Nothing
- setLineNumber(self, line_number)
- Sets line number
Parameters: the line number
Returns: Nothing
Raises: Nothing
- setSeverity(self, severity)
- Sets error severity
Parameters: severity of the error
Returns: Nothing
Raises: Nothing
- setTimeStamp(self, time)
- Sets time stamp of the error in 100th of nanoseconds.
Parameters: the time stamp of the error
Returns: Nothing
Raises: Nothing
|
class ArgErrorExImpl(ACSTimeError.ArgErrorEx, Acspy.Common.Err.ACSError, BaseException) |
|
Some form of custom documentation goes here... |
|
- Method resolution order:
- ArgErrorExImpl
- ACSTimeError.ArgErrorEx
- omniORB.CORBA.UserException
- omniORB.CORBA.Exception
- exceptions.Exception
- exceptions.BaseException
- Acspy.Common.Err.ACSError
- Acspy.Common.ErrorTrace.ErrorTraceHelper
- __builtin__.object
- BaseException
Methods defined here:
- __init__(self, nvSeq=None, exception=None, create=1, severity=None)
- Constructor
An instance of this class is derived from the CORBA class of
similar name. The difference between the two is that this class
provides many additional helper methods from Acspy.Common.Err.
There are three different combinations of keyword parameter
uses that make sense here:
__init__()
Using the default values creates a new exception which
does not include any previous error traces
__init__(exception=someOldException)
Specifying a previous ACS Error System exception or
without changing the value of create
creates a new exception which does in fact include
previous error traces from someOldException.
__init__(exception=someOldException, create=0)
Used to reconstruct someOldException without adding any
new error trace information. It is absolutely critical
that someOldException be of the same CORBA type as this
class implements!
nvSeq default keyword parameter
This sequence of name/values is only used when a new
exception is being created. In simple terms, the only
time you can use it is when the create keyword parameter
has the value of 1
severity default keyword parameter
This CORBA type corresponds to ACSErr.Severity. The
only time you can use it is when the create keyword parameter
has the value of 1
Parameters:
- nvSeq is a sequence of ACSErr.NameValue pairs used to add
additional information about the exception. Only used when
create has a value of 1/True
- exception is an ACS Error System based CORBA exception
Provide this to extract previous error trace
information and put this into the new object being constructed
- create is a boolean value which defines whether or not traceback
information should be extracted from the call to create this exception
and added to it's error trace. If you're simply trying to recreate
a remote CORBA exception locally and figure out what went wrong
most likely you want create to have a value of 0. However, if you
intend on rethrowing the exception a value of 1 makes more sense.
- severity is used to set the severity of exception. Only used when
create has a value of 1/True
- getACSTimeErrorEx(self)
- Returns this exception converted into an ACSTimeErrorEx
Methods inherited from omniORB.CORBA.UserException:
- __getitem__(self, i)
- __reduce__(self)
- __repr__(self)
- __str__(self)
Data descriptors inherited from omniORB.CORBA.Exception:
- __weakref__
- list of weak references to the object (if defined)
Data and other attributes inherited from exceptions.Exception:
- __new__ = <built-in method __new__ of type object>
- T.__new__(S, ...) -> a new object with type S, a subtype of T
Methods inherited from exceptions.BaseException:
- __delattr__(...)
- x.__delattr__('name') <==> del x.name
- __getattribute__(...)
- x.__getattribute__('name') <==> x.name
- __getslice__(...)
- x.__getslice__(i, j) <==> x[i:j]
Use of negative indices is not supported.
- __setattr__(...)
- x.__setattr__('name', value) <==> x.name = value
- __setstate__(...)
- __unicode__(...)
Data descriptors inherited from exceptions.BaseException:
- __dict__
- args
- message
Methods inherited from Acspy.Common.Err.ACSError:
- getErrorTrace(self)
- Overridden
- setErrorTrace(self, et_obj)
- Sets the member error trace
Parameters: et_obj is an ACSErr.ErrorTrace instances
Returns: Nothing
Raises: Nothing
Methods inherited from Acspy.Common.ErrorTrace.ErrorTraceHelper:
- Print(self)
- Prints errortrace information to standard out.
Parameters: None
Returns: Nothing
Raises: Nothing
- addData(self, name, value)
- Adds data to the current error
Parameters: name and value will both be converted to strings.
Returns: Nothing
Raises: Nothing
- errorTraceToString(self, error_trace, ws)
- Converts an error trace to a human-readable string.
Parameters: error_trace is an errortrace
ws is whitespace
Returns: Nothing
Raises: Nothing
- getData(self, name)
- Gets previously set data from the ErrorTrace.
Parameters: name of the data as defined by the addData method
Returns: a list of previously set data (stringified) with the matching
name. This list can be empty if there are no matches
Raises: Nothing
- getDescription(self)
- Returns copy of description of current error.
Parameters: None
Returns: Nothing
Raises: Nothing
- getErrorCode(self)
- Returns error code
Parameters: None
Returns: error code
Raises: Nothing
- getErrorType(self)
- Returns error type
Parameters: None
Returns: error type
Raises: Nothing
- getFileName(self)
- Returns file name information of the error
Parameters: None
Returns: filename
Raises: Nothing
- getHostName(self)
- Returns host name information of the error
Parameters: None
Returns: hostname
Raises: Nothing
- getLineNumber(self)
- Returns line number information of the error
Parameters: None
Returns: line number
Raises: Nothing
- getNext(self)
- Moves to the next errortrace element and returns a reference to it.
Parameters: None
Returns: the next errortrace element or None if it does not exist
Raises: Nothing
- getProcess(self)
- Returns process information of the error. Its name or process ID.
Parameters: None
Returns: Process ID
Raises: Nothing
- getRoutine(self)
- Returns routine information of the error
Parameters: None
Returns: routine name
Raises: Nothing
- getSeverity(self)
- Returns error severity
Parameters: None
Returns: Severity
Raises: Nothing
- getThread(self)
- Returns thread information of the error. The name of thread or its ID.
Parameters: None
Returns: Thread ID
Raises: Nothing
- getTimeStamp(self)
- Returns time stamp of the error in 100th of nanoseconds.
Parameters: None
Returns: time stamp
Raises: Nothing
- isOK(self)
- Returns 1 if errortrace does not represent error otherwise 0.
Parameters: None
Returns: 0 or 1
Raises: Nothing
- log(self, logger, priority=ACS_LOG_ERROR)
- Logs errortrace information into the ACS logging system.
Parameters:
- priorty which will be used for logging the error
Returns: Nothing
Raises: Nothing
- printET(self, error_trace, ws)
- Prints one error trace to standard out.
Parameters: et is an errortrace
ws is whitespace
Returns: Nothing
Raises: Nothing
- setData(self, name, value)
- Sets data within the ErrorTrace, adding it if it has not been
previously set.
Parameters: name and value will both be converted to strings.
Returns: Nothing
Raises: Nothing
- setError(self, error_code=None, error_type=None)
- Sets the error type/code
Parameters: self-explanatory
Returns: Nothing
Raises: ValueError if invalid parameters are given
- setFileName(self, file_name)
- Sets file name
Parameters: name of the file
Returns: Nothing
Raises: Nothing
- setLineNumber(self, line_number)
- Sets line number
Parameters: the line number
Returns: Nothing
Raises: Nothing
- setSeverity(self, severity)
- Sets error severity
Parameters: severity of the error
Returns: Nothing
Raises: Nothing
- setTimeStamp(self, time)
- Sets time stamp of the error in 100th of nanoseconds.
Parameters: the time stamp of the error
Returns: Nothing
Raises: Nothing
|
class BaseException |
|
Class serves as a base exception for all error type/code exception
pairs defined within this module. The reason this is provided is so
that one can generically catch ACS Error System based Python
exceptions using a single Python "except BaseException, e:" type
statement. |
|
|
class InvalidIDCompletionImpl(ACSErr.Completion, Acspy.Common.Err.ACSError) |
|
Some form of custom documentation goes here... |
|
- Method resolution order:
- InvalidIDCompletionImpl
- ACSErr.Completion
- omniORB.StructBase
- Acspy.Common.Err.ACSError
- Acspy.Common.ErrorTrace.ErrorTraceHelper
- __builtin__.object
Methods defined here:
- __init__(self, nvSeq=None, exception=None, create=1, severity=None)
- Constructor
An instance of this class is derived from ACSErr.Completion.
It provides many helper methods from Acspy.Common.Err.
There are three different combinations of keyword parameter
uses that make sense here:
__init__()
Using the default values creates a new Completion which
does not include any previous error traces
__init__(exception=acsException)
Specifying a previous ACS Error System exception without
changing the value of create creates a new Completion which
does in fact include previous error traces from
acsException.
__init__(exception=acsException, create=0)
Used to reconstruct acsException without adding any
new error trace information.
nvSeq default keyword parameter
This sequence of name/values is only used when a new
Completion is being created. In simple terms, the only
time you can use it is when the create keyword parameter
has the value of 1
severity default keyword parameter
This CORBA type corresponds to ACSErr.Severity. The
only time you can use it is when the create keyword parameter
has the value of 1
Parameters:
- nvSeq is a sequence of ACSErr.NameValue pairs used to add
additional information about the Completion. Only used when
create has a value of 1
- exception is an ACS Error System based CORBA exception.
Provide this to extract previous error trace information and put this into
the new object being constructed
- create is a boolean value which defines whether or not traceback
information should be extracted from the call to create this Completion
and added to it's error trace. If you're simply trying to recreate
a remote CORBA exception locally and figure out
what went wrong most likely you want create to have a value of 0.
However, if you intend on returning the Completion a value of 1 makes
more sense.
- severity is used to set the severity of the completion. Only used when
create has a value of 1/True
Methods inherited from omniORB.StructBase:
- __repr__(self)
Data descriptors inherited from omniORB.StructBase:
- __dict__
- dictionary for instance variables (if defined)
- __weakref__
- list of weak references to the object (if defined)
Methods inherited from Acspy.Common.Err.ACSError:
- getErrorTrace(self)
- Overridden
- setErrorTrace(self, et_obj)
- Sets the member error trace
Parameters: et_obj is an ACSErr.ErrorTrace instances
Returns: Nothing
Raises: Nothing
Methods inherited from Acspy.Common.ErrorTrace.ErrorTraceHelper:
- Print(self)
- Prints errortrace information to standard out.
Parameters: None
Returns: Nothing
Raises: Nothing
- addData(self, name, value)
- Adds data to the current error
Parameters: name and value will both be converted to strings.
Returns: Nothing
Raises: Nothing
- errorTraceToString(self, error_trace, ws)
- Converts an error trace to a human-readable string.
Parameters: error_trace is an errortrace
ws is whitespace
Returns: Nothing
Raises: Nothing
- getData(self, name)
- Gets previously set data from the ErrorTrace.
Parameters: name of the data as defined by the addData method
Returns: a list of previously set data (stringified) with the matching
name. This list can be empty if there are no matches
Raises: Nothing
- getDescription(self)
- Returns copy of description of current error.
Parameters: None
Returns: Nothing
Raises: Nothing
- getErrorCode(self)
- Returns error code
Parameters: None
Returns: error code
Raises: Nothing
- getErrorType(self)
- Returns error type
Parameters: None
Returns: error type
Raises: Nothing
- getFileName(self)
- Returns file name information of the error
Parameters: None
Returns: filename
Raises: Nothing
- getHostName(self)
- Returns host name information of the error
Parameters: None
Returns: hostname
Raises: Nothing
- getLineNumber(self)
- Returns line number information of the error
Parameters: None
Returns: line number
Raises: Nothing
- getNext(self)
- Moves to the next errortrace element and returns a reference to it.
Parameters: None
Returns: the next errortrace element or None if it does not exist
Raises: Nothing
- getProcess(self)
- Returns process information of the error. Its name or process ID.
Parameters: None
Returns: Process ID
Raises: Nothing
- getRoutine(self)
- Returns routine information of the error
Parameters: None
Returns: routine name
Raises: Nothing
- getSeverity(self)
- Returns error severity
Parameters: None
Returns: Severity
Raises: Nothing
- getThread(self)
- Returns thread information of the error. The name of thread or its ID.
Parameters: None
Returns: Thread ID
Raises: Nothing
- getTimeStamp(self)
- Returns time stamp of the error in 100th of nanoseconds.
Parameters: None
Returns: time stamp
Raises: Nothing
- isOK(self)
- Returns 1 if errortrace does not represent error otherwise 0.
Parameters: None
Returns: 0 or 1
Raises: Nothing
- log(self, logger, priority=ACS_LOG_ERROR)
- Logs errortrace information into the ACS logging system.
Parameters:
- priorty which will be used for logging the error
Returns: Nothing
Raises: Nothing
- printET(self, error_trace, ws)
- Prints one error trace to standard out.
Parameters: et is an errortrace
ws is whitespace
Returns: Nothing
Raises: Nothing
- setData(self, name, value)
- Sets data within the ErrorTrace, adding it if it has not been
previously set.
Parameters: name and value will both be converted to strings.
Returns: Nothing
Raises: Nothing
- setError(self, error_code=None, error_type=None)
- Sets the error type/code
Parameters: self-explanatory
Returns: Nothing
Raises: ValueError if invalid parameters are given
- setFileName(self, file_name)
- Sets file name
Parameters: name of the file
Returns: Nothing
Raises: Nothing
- setLineNumber(self, line_number)
- Sets line number
Parameters: the line number
Returns: Nothing
Raises: Nothing
- setSeverity(self, severity)
- Sets error severity
Parameters: severity of the error
Returns: Nothing
Raises: Nothing
- setTimeStamp(self, time)
- Sets time stamp of the error in 100th of nanoseconds.
Parameters: the time stamp of the error
Returns: Nothing
Raises: Nothing
|
class InvalidIDExImpl(ACSTimeError.InvalidIDEx, Acspy.Common.Err.ACSError, BaseException) |
|
Some form of custom documentation goes here... |
|
- Method resolution order:
- InvalidIDExImpl
- ACSTimeError.InvalidIDEx
- omniORB.CORBA.UserException
- omniORB.CORBA.Exception
- exceptions.Exception
- exceptions.BaseException
- Acspy.Common.Err.ACSError
- Acspy.Common.ErrorTrace.ErrorTraceHelper
- __builtin__.object
- BaseException
Methods defined here:
- __init__(self, nvSeq=None, exception=None, create=1, severity=None)
- Constructor
An instance of this class is derived from the CORBA class of
similar name. The difference between the two is that this class
provides many additional helper methods from Acspy.Common.Err.
There are three different combinations of keyword parameter
uses that make sense here:
__init__()
Using the default values creates a new exception which
does not include any previous error traces
__init__(exception=someOldException)
Specifying a previous ACS Error System exception or
without changing the value of create
creates a new exception which does in fact include
previous error traces from someOldException.
__init__(exception=someOldException, create=0)
Used to reconstruct someOldException without adding any
new error trace information. It is absolutely critical
that someOldException be of the same CORBA type as this
class implements!
nvSeq default keyword parameter
This sequence of name/values is only used when a new
exception is being created. In simple terms, the only
time you can use it is when the create keyword parameter
has the value of 1
severity default keyword parameter
This CORBA type corresponds to ACSErr.Severity. The
only time you can use it is when the create keyword parameter
has the value of 1
Parameters:
- nvSeq is a sequence of ACSErr.NameValue pairs used to add
additional information about the exception. Only used when
create has a value of 1/True
- exception is an ACS Error System based CORBA exception
Provide this to extract previous error trace
information and put this into the new object being constructed
- create is a boolean value which defines whether or not traceback
information should be extracted from the call to create this exception
and added to it's error trace. If you're simply trying to recreate
a remote CORBA exception locally and figure out what went wrong
most likely you want create to have a value of 0. However, if you
intend on rethrowing the exception a value of 1 makes more sense.
- severity is used to set the severity of exception. Only used when
create has a value of 1/True
- getACSTimeErrorEx(self)
- Returns this exception converted into an ACSTimeErrorEx
Methods inherited from omniORB.CORBA.UserException:
- __getitem__(self, i)
- __reduce__(self)
- __repr__(self)
- __str__(self)
Data descriptors inherited from omniORB.CORBA.Exception:
- __weakref__
- list of weak references to the object (if defined)
Data and other attributes inherited from exceptions.Exception:
- __new__ = <built-in method __new__ of type object>
- T.__new__(S, ...) -> a new object with type S, a subtype of T
Methods inherited from exceptions.BaseException:
- __delattr__(...)
- x.__delattr__('name') <==> del x.name
- __getattribute__(...)
- x.__getattribute__('name') <==> x.name
- __getslice__(...)
- x.__getslice__(i, j) <==> x[i:j]
Use of negative indices is not supported.
- __setattr__(...)
- x.__setattr__('name', value) <==> x.name = value
- __setstate__(...)
- __unicode__(...)
Data descriptors inherited from exceptions.BaseException:
- __dict__
- args
- message
Methods inherited from Acspy.Common.Err.ACSError:
- getErrorTrace(self)
- Overridden
- setErrorTrace(self, et_obj)
- Sets the member error trace
Parameters: et_obj is an ACSErr.ErrorTrace instances
Returns: Nothing
Raises: Nothing
Methods inherited from Acspy.Common.ErrorTrace.ErrorTraceHelper:
- Print(self)
- Prints errortrace information to standard out.
Parameters: None
Returns: Nothing
Raises: Nothing
- addData(self, name, value)
- Adds data to the current error
Parameters: name and value will both be converted to strings.
Returns: Nothing
Raises: Nothing
- errorTraceToString(self, error_trace, ws)
- Converts an error trace to a human-readable string.
Parameters: error_trace is an errortrace
ws is whitespace
Returns: Nothing
Raises: Nothing
- getData(self, name)
- Gets previously set data from the ErrorTrace.
Parameters: name of the data as defined by the addData method
Returns: a list of previously set data (stringified) with the matching
name. This list can be empty if there are no matches
Raises: Nothing
- getDescription(self)
- Returns copy of description of current error.
Parameters: None
Returns: Nothing
Raises: Nothing
- getErrorCode(self)
- Returns error code
Parameters: None
Returns: error code
Raises: Nothing
- getErrorType(self)
- Returns error type
Parameters: None
Returns: error type
Raises: Nothing
- getFileName(self)
- Returns file name information of the error
Parameters: None
Returns: filename
Raises: Nothing
- getHostName(self)
- Returns host name information of the error
Parameters: None
Returns: hostname
Raises: Nothing
- getLineNumber(self)
- Returns line number information of the error
Parameters: None
Returns: line number
Raises: Nothing
- getNext(self)
- Moves to the next errortrace element and returns a reference to it.
Parameters: None
Returns: the next errortrace element or None if it does not exist
Raises: Nothing
- getProcess(self)
- Returns process information of the error. Its name or process ID.
Parameters: None
Returns: Process ID
Raises: Nothing
- getRoutine(self)
- Returns routine information of the error
Parameters: None
Returns: routine name
Raises: Nothing
- getSeverity(self)
- Returns error severity
Parameters: None
Returns: Severity
Raises: Nothing
- getThread(self)
- Returns thread information of the error. The name of thread or its ID.
Parameters: None
Returns: Thread ID
Raises: Nothing
- getTimeStamp(self)
- Returns time stamp of the error in 100th of nanoseconds.
Parameters: None
Returns: time stamp
Raises: Nothing
- isOK(self)
- Returns 1 if errortrace does not represent error otherwise 0.
Parameters: None
Returns: 0 or 1
Raises: Nothing
- log(self, logger, priority=ACS_LOG_ERROR)
- Logs errortrace information into the ACS logging system.
Parameters:
- priorty which will be used for logging the error
Returns: Nothing
Raises: Nothing
- printET(self, error_trace, ws)
- Prints one error trace to standard out.
Parameters: et is an errortrace
ws is whitespace
Returns: Nothing
Raises: Nothing
- setData(self, name, value)
- Sets data within the ErrorTrace, adding it if it has not been
previously set.
Parameters: name and value will both be converted to strings.
Returns: Nothing
Raises: Nothing
- setError(self, error_code=None, error_type=None)
- Sets the error type/code
Parameters: self-explanatory
Returns: Nothing
Raises: ValueError if invalid parameters are given
- setFileName(self, file_name)
- Sets file name
Parameters: name of the file
Returns: Nothing
Raises: Nothing
- setLineNumber(self, line_number)
- Sets line number
Parameters: the line number
Returns: Nothing
Raises: Nothing
- setSeverity(self, severity)
- Sets error severity
Parameters: severity of the error
Returns: Nothing
Raises: Nothing
- setTimeStamp(self, time)
- Sets time stamp of the error in 100th of nanoseconds.
Parameters: the time stamp of the error
Returns: Nothing
Raises: Nothing
|
class OverflowOrUnderflowCompletionImpl(ACSErr.Completion, Acspy.Common.Err.ACSError) |
|
Some form of custom documentation goes here... |
|
- Method resolution order:
- OverflowOrUnderflowCompletionImpl
- ACSErr.Completion
- omniORB.StructBase
- Acspy.Common.Err.ACSError
- Acspy.Common.ErrorTrace.ErrorTraceHelper
- __builtin__.object
Methods defined here:
- __init__(self, nvSeq=None, exception=None, create=1, severity=None)
- Constructor
An instance of this class is derived from ACSErr.Completion.
It provides many helper methods from Acspy.Common.Err.
There are three different combinations of keyword parameter
uses that make sense here:
__init__()
Using the default values creates a new Completion which
does not include any previous error traces
__init__(exception=acsException)
Specifying a previous ACS Error System exception without
changing the value of create creates a new Completion which
does in fact include previous error traces from
acsException.
__init__(exception=acsException, create=0)
Used to reconstruct acsException without adding any
new error trace information.
nvSeq default keyword parameter
This sequence of name/values is only used when a new
Completion is being created. In simple terms, the only
time you can use it is when the create keyword parameter
has the value of 1
severity default keyword parameter
This CORBA type corresponds to ACSErr.Severity. The
only time you can use it is when the create keyword parameter
has the value of 1
Parameters:
- nvSeq is a sequence of ACSErr.NameValue pairs used to add
additional information about the Completion. Only used when
create has a value of 1
- exception is an ACS Error System based CORBA exception.
Provide this to extract previous error trace information and put this into
the new object being constructed
- create is a boolean value which defines whether or not traceback
information should be extracted from the call to create this Completion
and added to it's error trace. If you're simply trying to recreate
a remote CORBA exception locally and figure out
what went wrong most likely you want create to have a value of 0.
However, if you intend on returning the Completion a value of 1 makes
more sense.
- severity is used to set the severity of the completion. Only used when
create has a value of 1/True
Methods inherited from omniORB.StructBase:
- __repr__(self)
Data descriptors inherited from omniORB.StructBase:
- __dict__
- dictionary for instance variables (if defined)
- __weakref__
- list of weak references to the object (if defined)
Methods inherited from Acspy.Common.Err.ACSError:
- getErrorTrace(self)
- Overridden
- setErrorTrace(self, et_obj)
- Sets the member error trace
Parameters: et_obj is an ACSErr.ErrorTrace instances
Returns: Nothing
Raises: Nothing
Methods inherited from Acspy.Common.ErrorTrace.ErrorTraceHelper:
- Print(self)
- Prints errortrace information to standard out.
Parameters: None
Returns: Nothing
Raises: Nothing
- addData(self, name, value)
- Adds data to the current error
Parameters: name and value will both be converted to strings.
Returns: Nothing
Raises: Nothing
- errorTraceToString(self, error_trace, ws)
- Converts an error trace to a human-readable string.
Parameters: error_trace is an errortrace
ws is whitespace
Returns: Nothing
Raises: Nothing
- getData(self, name)
- Gets previously set data from the ErrorTrace.
Parameters: name of the data as defined by the addData method
Returns: a list of previously set data (stringified) with the matching
name. This list can be empty if there are no matches
Raises: Nothing
- getDescription(self)
- Returns copy of description of current error.
Parameters: None
Returns: Nothing
Raises: Nothing
- getErrorCode(self)
- Returns error code
Parameters: None
Returns: error code
Raises: Nothing
- getErrorType(self)
- Returns error type
Parameters: None
Returns: error type
Raises: Nothing
- getFileName(self)
- Returns file name information of the error
Parameters: None
Returns: filename
Raises: Nothing
- getHostName(self)
- Returns host name information of the error
Parameters: None
Returns: hostname
Raises: Nothing
- getLineNumber(self)
- Returns line number information of the error
Parameters: None
Returns: line number
Raises: Nothing
- getNext(self)
- Moves to the next errortrace element and returns a reference to it.
Parameters: None
Returns: the next errortrace element or None if it does not exist
Raises: Nothing
- getProcess(self)
- Returns process information of the error. Its name or process ID.
Parameters: None
Returns: Process ID
Raises: Nothing
- getRoutine(self)
- Returns routine information of the error
Parameters: None
Returns: routine name
Raises: Nothing
- getSeverity(self)
- Returns error severity
Parameters: None
Returns: Severity
Raises: Nothing
- getThread(self)
- Returns thread information of the error. The name of thread or its ID.
Parameters: None
Returns: Thread ID
Raises: Nothing
- getTimeStamp(self)
- Returns time stamp of the error in 100th of nanoseconds.
Parameters: None
Returns: time stamp
Raises: Nothing
- isOK(self)
- Returns 1 if errortrace does not represent error otherwise 0.
Parameters: None
Returns: 0 or 1
Raises: Nothing
- log(self, logger, priority=ACS_LOG_ERROR)
- Logs errortrace information into the ACS logging system.
Parameters:
- priorty which will be used for logging the error
Returns: Nothing
Raises: Nothing
- printET(self, error_trace, ws)
- Prints one error trace to standard out.
Parameters: et is an errortrace
ws is whitespace
Returns: Nothing
Raises: Nothing
- setData(self, name, value)
- Sets data within the ErrorTrace, adding it if it has not been
previously set.
Parameters: name and value will both be converted to strings.
Returns: Nothing
Raises: Nothing
- setError(self, error_code=None, error_type=None)
- Sets the error type/code
Parameters: self-explanatory
Returns: Nothing
Raises: ValueError if invalid parameters are given
- setFileName(self, file_name)
- Sets file name
Parameters: name of the file
Returns: Nothing
Raises: Nothing
- setLineNumber(self, line_number)
- Sets line number
Parameters: the line number
Returns: Nothing
Raises: Nothing
- setSeverity(self, severity)
- Sets error severity
Parameters: severity of the error
Returns: Nothing
Raises: Nothing
- setTimeStamp(self, time)
- Sets time stamp of the error in 100th of nanoseconds.
Parameters: the time stamp of the error
Returns: Nothing
Raises: Nothing
|
class OverflowOrUnderflowExImpl(ACSTimeError.OverflowOrUnderflowEx, Acspy.Common.Err.ACSError, BaseException) |
|
Some form of custom documentation goes here... |
|
- Method resolution order:
- OverflowOrUnderflowExImpl
- ACSTimeError.OverflowOrUnderflowEx
- omniORB.CORBA.UserException
- omniORB.CORBA.Exception
- exceptions.Exception
- exceptions.BaseException
- Acspy.Common.Err.ACSError
- Acspy.Common.ErrorTrace.ErrorTraceHelper
- __builtin__.object
- BaseException
Methods defined here:
- __init__(self, nvSeq=None, exception=None, create=1, severity=None)
- Constructor
An instance of this class is derived from the CORBA class of
similar name. The difference between the two is that this class
provides many additional helper methods from Acspy.Common.Err.
There are three different combinations of keyword parameter
uses that make sense here:
__init__()
Using the default values creates a new exception which
does not include any previous error traces
__init__(exception=someOldException)
Specifying a previous ACS Error System exception or
without changing the value of create
creates a new exception which does in fact include
previous error traces from someOldException.
__init__(exception=someOldException, create=0)
Used to reconstruct someOldException without adding any
new error trace information. It is absolutely critical
that someOldException be of the same CORBA type as this
class implements!
nvSeq default keyword parameter
This sequence of name/values is only used when a new
exception is being created. In simple terms, the only
time you can use it is when the create keyword parameter
has the value of 1
severity default keyword parameter
This CORBA type corresponds to ACSErr.Severity. The
only time you can use it is when the create keyword parameter
has the value of 1
Parameters:
- nvSeq is a sequence of ACSErr.NameValue pairs used to add
additional information about the exception. Only used when
create has a value of 1/True
- exception is an ACS Error System based CORBA exception
Provide this to extract previous error trace
information and put this into the new object being constructed
- create is a boolean value which defines whether or not traceback
information should be extracted from the call to create this exception
and added to it's error trace. If you're simply trying to recreate
a remote CORBA exception locally and figure out what went wrong
most likely you want create to have a value of 0. However, if you
intend on rethrowing the exception a value of 1 makes more sense.
- severity is used to set the severity of exception. Only used when
create has a value of 1/True
- getACSTimeErrorEx(self)
- Returns this exception converted into an ACSTimeErrorEx
Methods inherited from omniORB.CORBA.UserException:
- __getitem__(self, i)
- __reduce__(self)
- __repr__(self)
- __str__(self)
Data descriptors inherited from omniORB.CORBA.Exception:
- __weakref__
- list of weak references to the object (if defined)
Data and other attributes inherited from exceptions.Exception:
- __new__ = <built-in method __new__ of type object>
- T.__new__(S, ...) -> a new object with type S, a subtype of T
Methods inherited from exceptions.BaseException:
- __delattr__(...)
- x.__delattr__('name') <==> del x.name
- __getattribute__(...)
- x.__getattribute__('name') <==> x.name
- __getslice__(...)
- x.__getslice__(i, j) <==> x[i:j]
Use of negative indices is not supported.
- __setattr__(...)
- x.__setattr__('name', value) <==> x.name = value
- __setstate__(...)
- __unicode__(...)
Data descriptors inherited from exceptions.BaseException:
- __dict__
- args
- message
Methods inherited from Acspy.Common.Err.ACSError:
- getErrorTrace(self)
- Overridden
- setErrorTrace(self, et_obj)
- Sets the member error trace
Parameters: et_obj is an ACSErr.ErrorTrace instances
Returns: Nothing
Raises: Nothing
Methods inherited from Acspy.Common.ErrorTrace.ErrorTraceHelper:
- Print(self)
- Prints errortrace information to standard out.
Parameters: None
Returns: Nothing
Raises: Nothing
- addData(self, name, value)
- Adds data to the current error
Parameters: name and value will both be converted to strings.
Returns: Nothing
Raises: Nothing
- errorTraceToString(self, error_trace, ws)
- Converts an error trace to a human-readable string.
Parameters: error_trace is an errortrace
ws is whitespace
Returns: Nothing
Raises: Nothing
- getData(self, name)
- Gets previously set data from the ErrorTrace.
Parameters: name of the data as defined by the addData method
Returns: a list of previously set data (stringified) with the matching
name. This list can be empty if there are no matches
Raises: Nothing
- getDescription(self)
- Returns copy of description of current error.
Parameters: None
Returns: Nothing
Raises: Nothing
- getErrorCode(self)
- Returns error code
Parameters: None
Returns: error code
Raises: Nothing
- getErrorType(self)
- Returns error type
Parameters: None
Returns: error type
Raises: Nothing
- getFileName(self)
- Returns file name information of the error
Parameters: None
Returns: filename
Raises: Nothing
- getHostName(self)
- Returns host name information of the error
Parameters: None
Returns: hostname
Raises: Nothing
- getLineNumber(self)
- Returns line number information of the error
Parameters: None
Returns: line number
Raises: Nothing
- getNext(self)
- Moves to the next errortrace element and returns a reference to it.
Parameters: None
Returns: the next errortrace element or None if it does not exist
Raises: Nothing
- getProcess(self)
- Returns process information of the error. Its name or process ID.
Parameters: None
Returns: Process ID
Raises: Nothing
- getRoutine(self)
- Returns routine information of the error
Parameters: None
Returns: routine name
Raises: Nothing
- getSeverity(self)
- Returns error severity
Parameters: None
Returns: Severity
Raises: Nothing
- getThread(self)
- Returns thread information of the error. The name of thread or its ID.
Parameters: None
Returns: Thread ID
Raises: Nothing
- getTimeStamp(self)
- Returns time stamp of the error in 100th of nanoseconds.
Parameters: None
Returns: time stamp
Raises: Nothing
- isOK(self)
- Returns 1 if errortrace does not represent error otherwise 0.
Parameters: None
Returns: 0 or 1
Raises: Nothing
- log(self, logger, priority=ACS_LOG_ERROR)
- Logs errortrace information into the ACS logging system.
Parameters:
- priorty which will be used for logging the error
Returns: Nothing
Raises: Nothing
- printET(self, error_trace, ws)
- Prints one error trace to standard out.
Parameters: et is an errortrace
ws is whitespace
Returns: Nothing
Raises: Nothing
- setData(self, name, value)
- Sets data within the ErrorTrace, adding it if it has not been
previously set.
Parameters: name and value will both be converted to strings.
Returns: Nothing
Raises: Nothing
- setError(self, error_code=None, error_type=None)
- Sets the error type/code
Parameters: self-explanatory
Returns: Nothing
Raises: ValueError if invalid parameters are given
- setFileName(self, file_name)
- Sets file name
Parameters: name of the file
Returns: Nothing
Raises: Nothing
- setLineNumber(self, line_number)
- Sets line number
Parameters: the line number
Returns: Nothing
Raises: Nothing
- setSeverity(self, severity)
- Sets error severity
Parameters: severity of the error
Returns: Nothing
Raises: Nothing
- setTimeStamp(self, time)
- Sets time stamp of the error in 100th of nanoseconds.
Parameters: the time stamp of the error
Returns: Nothing
Raises: Nothing
| |