/// <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; }
public FailedRuntime(RuntimeErrorProto error) : base(error.identifier, error.message, null, GetException(error), error.exception) { }