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 edo oToolbar: dark-theme W A banana is an edible fruit produced by several kinds of large herbace7THE FIRST FLOOR Is approached by an exceptionally fine MASSIVE OAK STAIRCASE which is the feature isustainability IMPACT FACTOR 2.576 an Open Access Journal by MDPIChallenges to Sustainable DevelopmeWhat Is an Extended Yolume You can increase the size of an existing simple volume by extending the v10 Wstęp • How do you design an algorithm, (a step by step plan), to solvesmpb 16 Disease is Evil urge you to eonie to me FIRST, with the assuranec that I can help you—not thstacja 8 STACJA VIII an Jezus spotyka płaczące niewiasty pl ac zą , że P an u pomóc nie mop. by Twoj10 Pawlowski/Problcmy Ekorozw oju/Pniblcms of Sustainablc Dcvclopmcnt 2/2012,7-13 ble development. Akey0009 TFSr 4 Titanic you ‘o< ; .irytcion Hat Tho ronccrt by the Sundowners uuoak sih1 143 task force, led by the last of England s great Warlords, John Talbot, first Earl of Sh15711 nosidelko CAT CARRIER Whether you have an exuberant Tom or just a kitten, you need our new TThe morę you read, the morę you learn. The morę you write, the morę you develop. ADYANTACE & DISgetappx1 ★ ★ ★ ★ A 4 ratings p.220.00 When you install an app, you agree to the Terms of Use and an124 STRESS ANALYSIS The Elastic instability of a thin curved panel, subjected to an axial thrust, etwięcej podobnych podstron