示例#1
0
 /// <summary>
 /// Get the exception from error
 /// </summary>
 /// <param name="error"></param>
 /// <returns>excetpiont from error</returns>
 private static Exception GetException(RuntimeErrorProto error)
 {
     byte[] data = error.exception;
     if (data != null)
     {
         return new InvalidOperationException(ByteUtilities.ByteArrarysToString(error.exception));
     }
     return null;
 }
示例#2
0
 public FailedRuntime(RuntimeErrorProto error)
     : base(error.identifier, error.message, null, GetException(error), error.exception)
 {
 }