コード例 #1
0
 public static TaskException ToTaskException(FacadeTaskException exception)
 {
     return(TaskExceptionFactory.CreateTaskException(exception.Type, exception.Message, exception.StackTrace));
 }
コード例 #2
0
ファイル: FacadeUtils.cs プロジェクト: dougrathbone/mbunit-v3
 public static TaskException ToTaskException(FacadeTaskException exception)
 {
     return TaskExceptionFactory.CreateTaskException(exception.Type, exception.Message, exception.StackTrace);
 }
コード例 #3
0
 /// <inheritdoc />
 public void TaskException(FacadeTask task, FacadeTaskException[] exceptions)
 {
     try
     {
         TaskException[] nativeExceptions = Array.ConvertAll<FacadeTaskException, TaskException>(exceptions, FacadeUtils.ToTaskException);
         server.TaskException(GetRemoteTask(task), nativeExceptions);
     }
     catch (Exception ex)
     {
         throw ServerExceptionUtils.Wrap(ex);
     }
 }