using System; using System.Collections.Generic; using System.Linq; using System.Text; namespace Bowin.Common.Exceptions { public class ExceptionHelper { public static System.Data.SqlClient.SqlException GetSqlException(Exception ex) { if (ex is System.Data.SqlClient.SqlException) return (System.Data.SqlClient.SqlException)ex; if (ex.InnerException == null) return null; else return GetSqlException(ex.InnerException); } } public class SuccessException : Exception { public SuccessException(string message) : base(message) { } public SuccessException(string message, Exception ex) : base(message, ex) { } } }