Back to index

lightning-sunbird  0.9+nobinonly
Public Member Functions | Static Private Attributes
test_com_exceptions.PythonFailingComponent Class Reference

List of all members.

Public Member Functions

def do_boolean
def do_octet
def do_short
def do_unsigned_short
def do_long
def do_unsigned_long
def do_long_long
def do_unsigned_long_long

Static Private Attributes

 _com_interfaces_ = components.interfaces.nsIPythonTestInterfaceExtra

Detailed Description

Definition at line 42 of file test_com_exceptions.py.


Member Function Documentation

Definition at line 46 of file test_com_exceptions.py.

00046 
00047     def do_boolean(self, p1, p2):
00048         # This should cause the caller to see a "silent" NS_ERROR_FAILURE exception.
00049         raise ServerException()

def test_com_exceptions.PythonFailingComponent.do_long (   self,
  p1,
  p2 
)

Definition at line 62 of file test_com_exceptions.py.

00062 
00063     def do_long(self, p1, p2):
00064         # This should cause the caller to see a "silent" NS_ERROR_FAILURE exception.
00065         raise ServerException

Definition at line 70 of file test_com_exceptions.py.

00070 
00071     def do_long_long(self, p1, p2):
00072         # This should cause the caller to see a "silent" NS_ERROR_NOT_IMPLEMENTED exception.
00073         raise ServerException, (nsError.NS_ERROR_NOT_IMPLEMENTED, "testing")

def test_com_exceptions.PythonFailingComponent.do_octet (   self,
  p1,
  p2 
)

Definition at line 50 of file test_com_exceptions.py.

00050 
00051     def do_octet(self, p1, p2):
00052         # This should cause the caller to see a "silent" NS_ERROR_NOT_IMPLEMENTED exception.
00053         raise ServerException(nsError.NS_ERROR_NOT_IMPLEMENTED)

def test_com_exceptions.PythonFailingComponent.do_short (   self,
  p1,
  p2 
)

Definition at line 54 of file test_com_exceptions.py.

00054 
00055     def do_short(self, p1, p2):
00056         # This should cause the caller to see a "debug" NS_ERROR_FAILURE exception.
00057         raise COMException(nsError.NS_ERROR_NOT_IMPLEMENTED)

Definition at line 66 of file test_com_exceptions.py.

00066 
00067     def do_unsigned_long(self, p1, p2):
00068         # This should cause the caller to see a "silent" NS_ERROR_NOT_IMPLEMENTED exception.
00069         raise ServerException, nsError.NS_ERROR_NOT_IMPLEMENTED

Definition at line 74 of file test_com_exceptions.py.

00074 
00075     def do_unsigned_long_long(self, p1, p2):
00076         # Report of a crash in this case - test it!
00077         raise ServerException, "A bad exception param"

Definition at line 58 of file test_com_exceptions.py.

00058 
00059     def do_unsigned_short(self, p1, p2):
00060         # This should cause the caller to see a "debug" NS_ERROR_FAILURE exception.
00061         raise "Foo"


Member Data Documentation

test_com_exceptions.PythonFailingComponent._com_interfaces_ = components.interfaces.nsIPythonTestInterfaceExtra [static, private]

Definition at line 44 of file test_com_exceptions.py.


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