OpenPetra
Free Administration Software for Non-Profits
Ict.Common.DB.Exceptions.TDBExceptionHelper Class Reference

Static helper class for DB Exceptions More...

Static Public Member Functions

static bool IsFirstChanceNpgsql40001Exception (Exception AException)
 Tests to see if the exception was raised by Npgsql and is an ERROR 40001. This is the error raised when serializable transactions collide. More...
 
static bool IsFirstChanceNpgsql23505Exception (Exception AException)
 Tests to see if the exception was raised by Npgsql and is an ERROR 23505 and the constraint is a primary key. This error is PROBABLY raised when serializable transactions collide. More...
 
static bool IsTransactionSerialisationException (Exception AException)
 Tests to see if the exception looks like it was caused by serializable transactions colliding. More...
 

Detailed Description

Static helper class for DB Exceptions

Member Function Documentation

◆ IsFirstChanceNpgsql23505Exception()

static bool Ict.Common.DB.Exceptions.TDBExceptionHelper.IsFirstChanceNpgsql23505Exception ( Exception  AException)
inlinestatic

Tests to see if the exception was raised by Npgsql and is an ERROR 23505 and the constraint is a primary key. This error is PROBABLY raised when serializable transactions collide.

◆ IsFirstChanceNpgsql40001Exception()

static bool Ict.Common.DB.Exceptions.TDBExceptionHelper.IsFirstChanceNpgsql40001Exception ( Exception  AException)
inlinestatic

Tests to see if the exception was raised by Npgsql and is an ERROR 40001. This is the error raised when serializable transactions collide.

◆ IsTransactionSerialisationException()

static bool Ict.Common.DB.Exceptions.TDBExceptionHelper.IsTransactionSerialisationException ( Exception  AException)
inlinestatic

Tests to see if the exception looks like it was caused by serializable transactions colliding.


The documentation for this class was generated from the following file: