예제 #1
0
파일: Database.cs 프로젝트: MNHarun/higlabo
 protected void CatchException(CommandErrorEventArgs e)
 {
     Database.OnCommandError(e);
     if (e.ThrowException == true)
     {
         var ex = this.CreateException(e);
         ExceptionDispatchInfo.Capture(ex).Throw();
     }
 }
예제 #2
0
파일: Database.cs 프로젝트: RE-7777/higlabo
 protected void CatchException(CommandErrorEventArgs e)
 {
     Database.OnCommandError(e);
     if (e.ThrowException == true)
     {
         var ex = this.CreateException(e);
         throw ex;
     }
 }