Changeset 277

Show
Ignore:
Timestamp:
08/11/06 11:41:25 (2 years ago)
Author:
mj
Message:

Define exceptions to be thrown

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • z3wingdbg/trunk/interfaces.py

    r264 r277  
    1010     
    1111    def startDebugServer(): 
    12         """Start the debug server""" 
     12        """Start the debug server 
     13         
     14        May throw a DebugServerStartError. 
     15         
     16        """ 
    1317         
    1418    def stopDebugServer(): 
     
    1923         
    2024    def connectIDE(): 
    21         """Connect the debug server to the IDE""" 
     25        """Connect the debug server to the IDE 
     26         
     27        May throw a IDEConnectionError. 
     28         
     29        """ 
    2230     
    2331    def disconnectIDE(): 
     
    3240    debugger = interface.Attribute('The active debugger, or None') 
    3341     
     42# Service exceptions 
     43class DebugServerStartError(Exception): 
     44    """The debug server failed to start""" 
     45     
     46class IDEConnectionError(Exception): 
     47    """The debugger failed to connect to the IDE""" 
     48     
    3449# The networked debugger 
    3550class INetworkDebugger(interface.Interface): 
     
    4257     
    4358    def connectClient(): 
    44         """Establish a connection to client if there isn't one already""" 
     59        """Establish a connection to client if there isn't one already.""" 
    4560         
    4661    def disconnectClient():