public static void HandleApplicationException(object sender, Exception e)
{
if (e is System.Data.SqlClient.SqlException)
{
HandleSqlClientException(sender, e as System.Data.SqlClient.SqlException);
return;
}
if (e is NoNullAllowedException)
{
HandleNoNullAllowedException(e as NoNullAllowedException);
return;
}
if (e is DataException)
{
HandleDataException(e as DataException);
return;
}
if (e is ReadOnlyException)
{
HandleReadOnlyException(e as ReadOnlyException);
return;
}
if (e is DBConcurrencyException)
{
HandleDBConcurrencyException(e as DBConcurrencyException);
return;
}
if (e is DeletedRowInaccessibleException)
{
HandleDeletedRowInaccessibleException(e as DeletedRowInaccessibleException);
return;
}
if (e is DuplicateNameException)
{
HandleDuplicateNameException(e as DuplicateNameException);
return;
}
if (e is EvaluateException)
{
HandleEvaluateException(e as EvaluateException);
return;
}
if (e is InRowChangingEventException)
{
HandleInRowChangingEventException(e as InRowChangingEventException);
return;
}
if (e is InvalidConstraintException)
{
HandleInvalidConstraintException(e as InvalidConstraintException);
return;
}
if (e is MissingPrimaryKeyException)
{
HandleMissingPrimaryKeyException(e as MissingPrimaryKeyException);
return;
}
if (e is OperationAbortedException)
{
HandleOperationAbortedException(e as OperationAbortedException);
return;
}
if (e is RowNotInTableException)
{
HandleRowNotInTableException(e as RowNotInTableException);
return;
}
if (e is StrongTypingException)
{
HandleStrongTypingException(e as StrongTypingException);
return;
}
if (e is SyntaxErrorException)
{
HandleSyntaxErrorException(e as SyntaxErrorException);
return;
}
if (e is TypedDataSetGeneratorException)
{
HandleTypedDataSetGeneratorException(e as TypedDataSetGeneratorException);
return;
}
if (e is VersionNotFoundException)
{
HandleVersionNotFoundException(e as VersionNotFoundException);
return;
}
// System exceptions
if (e is System.ArgumentException)
{
HandleArgumentException(e as ArgumentException);
return;
}
if (e is ArgumentNullException)
{
HandlArgumentNullException(e as ArgumentNullException);
return;
}
if (e is NullReferenceException)
{
HandleNullReferenceException(e as NullReferenceException);
return;
}
if (e is System.ComponentModel.Win32Exception)
{
HandleWin32Exception(e as Win32Exception);
return;
}
if (e is ApplicationException)
{
HandleApplicationException(e as ApplicationException);
}
// ��������� ����������� ����������
HandleUnhandledException(e);
}