public ExecutionError(ExecutionErrorType type, string?message = null, Exception?exception = null) { Message = message ?? exception?.Message ?? type.ToString(); Type = type; Exception = exception; }
public ExecutionException(ExecutionErrorType type, string?message = null, Exception?innerException = null) : base(message ?? innerException?.Message ?? type.ToString(), innerException) { Type = type; }
public void Add(ExecutionErrorType type, string?message = null, Exception?exception = null) { Add(new ExecutionError(type, message, exception)); }