Public Member Functions | Static Private Attributes | List of all members
opcua.ua.uaerrors._base.UaStatusCodeError Class Reference
Inheritance diagram for opcua.ua.uaerrors._base.UaStatusCodeError:
Inheritance graph
[legend]

Public Member Functions

def __init__ (self, code=None)
 
def __new__ (cls, args)
 
def __str__ (self)
 
def code (self)
 
- Public Member Functions inherited from opcua.ua.uaerrors._base._AutoRegister
def __new__ (mcs, name, bases, dict)
 

Static Private Attributes

dictionary _subclasses = {}
 

Detailed Description

This exception is raised when a bad status code is encountered.

It exposes the status code number in the `code' property, so the
user can distinguish between the different status codes and maybe
handle some of them.

The list of status error codes can be found in opcua.ua.status_codes.
Dict containing all subclasses keyed to their status code. 

Definition at line 27 of file _base.py.

Constructor & Destructor Documentation

def opcua.ua.uaerrors._base.UaStatusCodeError.__init__ (   self,
  code = None 
)
:param code: The code of the exception. Only needed when not instanciating
     a concrete subclass such as BadInternalError.

Definition at line 61 of file _base.py.

Member Function Documentation

def opcua.ua.uaerrors._base.UaStatusCodeError.__new__ (   cls,
  args 
)
Creates a new UaStatusCodeError but returns a more specific subclass
if possible, e.g.

    UaStatusCodeError(0x80010000) => BadUnexpectedError()

Definition at line 41 of file _base.py.

def opcua.ua.uaerrors._base.UaStatusCodeError.__str__ (   self)

Definition at line 71 of file _base.py.

def opcua.ua.uaerrors._base.UaStatusCodeError.code (   self)
The code of the status error.

Definition at line 78 of file _base.py.

Member Data Documentation

dictionary opcua.ua.uaerrors._base.UaStatusCodeError._subclasses = {}
staticprivate

Definition at line 39 of file _base.py.


The documentation for this class was generated from the following file:


ros_opcua_impl_python_opcua
Author(s): Denis Štogl , Daniel Draper
autogenerated on Tue Jan 19 2021 03:12:45