Skip to main content

WhenSqlError

Namespace: PPJ.Runtime.Sql

Assembly: PPJ.Runtime.49 (4.9.0.0)

This class is use to enclose a When SqlError block in a using(new WhenSqlError()) block. On entering the block a counter is increased, when exiting the block the counter is decreased. When the counter is zero and a sql error occurs, the Sql implementation will try to use the global error handler. If the counter is non-zero the implementation does not call the global handler. If this is block omitted, the implementation will alway try to call the global Sql Error handler. If the global handler is not defined, the behavior of the application is unaltered.

public class WhenSqlError : IDisposable

Constructors

Instance memberWhenSqlError()

Methods

Instance memberDispose()

Dispose WhenSqlError