// <auto-generated/>

#nullable disable

using System;
using System.Collections.Generic;

namespace OpenAI.Assistants
{
    public partial class RunError
    {
        internal IDictionary<string, BinaryData> _serializedAdditionalRawData;

        internal RunError(RunErrorCode code, string message)
        {
            Argument.AssertNotNull(message, nameof(message));

            Code = code;
            Message = message;
        }

        internal RunError(RunErrorCode code, string message, IDictionary<string, BinaryData> serializedAdditionalRawData)
        {
            Code = code;
            Message = message;
            _serializedAdditionalRawData = serializedAdditionalRawData;
        }

        internal RunError()
        {
        }

        public RunErrorCode Code { get; }
        public string Message { get; }
    }
}
