89280

89280



BaseExceptionInterceptor

You develop an exception interceptor first by creating a subclass of the

BaseExceptionInterceptorclass. You must override the InterceptException() method. You

can also override the Init () method to do some one-time inrtialization.

Each exception interceptor has 2 methods:

public abstract Exception InterceptException(Exception exception, MySąlConnection connection);

public virtual void Init(MySąlConnection connection);

The connection passed to Init () is the connection that is attached to this interceptor.

Each interceptor is required to override InterceptExceptionand return an exception. It can return

the exception it is given, or it can wrap it in a newexception. We currentiy do not offer

the ability to

suppress the exception.

For fuli usage and examples, see Section 22.2.5.11, "Using the Connector/Net Interceptor Classes”.



Wyszukiwarka

Podobne podstrony:
;v analysis approximation. A model ii developed to simulate impect loeding by the dlstribution of ed
o oToolbar: dark-theme W A banana is an edible fruit produced by several kinds of large herbace
7THE FIRST FLOOR Is approached by an exceptionally fine MASSIVE OAK STAIRCASE which is the feature i
sustainability IMPACT FACTOR 2.576 an Open Access Journal by MDPIChallenges to Sustainable Developme
What Is an Extended Yolume You can increase the size of an existing simple volume by extending the v
10 Wstęp •    How do you design an algorithm, (a step by step plan), to solve
smpb 16 Disease is Evil urge you to eonie to me FIRST, with the assuranec that I can help you—not th
stacja 8 STACJA VIII an Jezus spotyka płaczące niewiasty pl ac zą , że P an u pomóc nie mop. by Twoj
10 Pawlowski/Problcmy Ekorozw oju/Pniblcms of Sustainablc Dcvclopmcnt 2/2012,7-13 ble development. A
key0009 TFSr 4 Titanic you ‘o< ;    .irytcion Hat Tho ronccrt by the Sundowners uu
oak sih1 143 task force, led by the last of England s great Warlords, John Talbot, first Earl of Sh
15711 nosidelko CAT CARRIER Whether you have an exuberant Tom or just a kitten, you need our new T
The morę you read, the morę you learn. The morę you write, the morę you develop. ADYANTACE & DIS
getappx1 ★ ★ ★ ★ A 4 ratings p.220.00 When you install an app, you agree to the Terms of Use and an
124 STRESS ANALYSIS The Elastic instability of a thin curved panel, subjected to an axial thrust, et

więcej podobnych podstron