pythoncom.gif
Previous Next blank.gif Home Page

Class DispatcherBase - The base class for all Dispatchers.


SYNOPSIS

import win32com.server.policy
class DispatcherBase
  def _CreateInstance_(self, clsid, reqIID)
  def _GetIDsOfNames_(self, names, lcid)
  def _HandleException_(self)
  def _Invoke_(self, dispid, lcid, wFlags, args)
  def _QueryInterface_(self, iid)
  def __init__(self, policyClass, object)
  def _trace_(self, *args)

DESCRIPTION

This dispatcher supports wrapping all operations in exception handlers, and all the necessary delegation to the policy.

This base class supports the printing of "unexpected" exceptions. Note, however, that exactly where the output of print goes may not be useful! A derived class may provide additional semantics for this.

def _HandleException_(self)

Called whenever an exception is raised.

Default behaviour is to print the exception.

SEE ALSO

win32com.server.policy


Previous Next blank.gif Home Page
www_icon.gif

Copyright © Greg Stein and Mark Hammond
All Rights Reserved
Comments to author: dev@null
Generated: Sun Apr 20 1997