/// <summary>
 /// Validate the object.
 /// </summary>
 /// <exception cref="Microsoft.Rest.ValidationException">
 /// Thrown if validation fails
 /// </exception>
 public override void Validate()
 {
     base.Validate();
     if (ProcessName == null)
     {
         throw new Microsoft.Rest.ValidationException(Microsoft.Rest.ValidationRules.CannotBeNull, "ProcessName");
     }
     if (ErrorAttachment != null)
     {
         ErrorAttachment.Validate();
     }
 }
 /// <summary>
 /// Initializes a new instance of the AbstractErrorLog class.
 /// </summary>
 /// <param name="toffset">Corresponds to the number of milliseconds
 /// elapsed between the time the request is sent and the time the log
 /// is emitted.</param>
 /// <param name="id">Error identifier.</param>
 /// <param name="processId">Process identifier.</param>
 /// <param name="processName">Process name.</param>
 /// <param name="fatal">If true, this error report is an application
 /// crash.</param>
 /// <param name="appLaunchToffset">Corresponds to the number of
 /// milliseconds elapsed between the time the error occurred and the
 /// app was launched.</param>
 /// <param name="sid">When tracking an analytics session, logs can be
 /// part of the session by specifying this identifier.
 /// This attribute is optional, a missing value means the session
 /// tracking is disabled (like when using only error reporting
 /// feature).
 /// Concrete types like StartSessionLog or PageLog are always part of a
 /// session and always include this identifier.
 /// </param>
 /// <param name="parentProcessId">Parent's process identifier.</param>
 /// <param name="parentProcessName">Parent's process name.</param>
 /// <param name="errorThreadId">Error thread identifier.</param>
 /// <param name="errorThreadName">Error thread name.</param>
 /// <param name="errorAttachment">Error attachment.</param>
 /// <param name="architecture">CPU architecture.</param>
 public AbstractErrorLog(long toffset, Device device, System.Guid id, int processId, string processName, bool fatal, long appLaunchToffset, System.Guid?sid = default(System.Guid?), int?parentProcessId = default(int?), string parentProcessName = default(string), long?errorThreadId = default(long?), string errorThreadName = default(string), ErrorAttachment errorAttachment = default(ErrorAttachment), string architecture = default(string))
     : base(toffset, device, sid)
 {
     Id                = id;
     ProcessId         = processId;
     ProcessName       = processName;
     ParentProcessId   = parentProcessId;
     ParentProcessName = parentProcessName;
     ErrorThreadId     = errorThreadId;
     ErrorThreadName   = errorThreadName;
     Fatal             = fatal;
     AppLaunchToffset  = appLaunchToffset;
     ErrorAttachment   = errorAttachment;
     Architecture      = architecture;
 }
Ejemplo n.º 3
0
 /// <summary>
 /// Initializes a new instance of the AppleErrorLog class.
 /// </summary>
 /// <param name="toffset">Corresponds to the number of milliseconds
 /// elapsed between the time the request is sent and the time the log
 /// is emitted.</param>
 /// <param name="id">Error identifier.</param>
 /// <param name="processId">Process identifier.</param>
 /// <param name="processName">Process name.</param>
 /// <param name="fatal">If true, this error report is an application
 /// crash.</param>
 /// <param name="appLaunchToffset">Corresponds to the number of
 /// milliseconds elapsed between the time the error occurred and the
 /// app was launched.</param>
 /// <param name="primaryArchitectureId">CPU primary
 /// architecture.</param>
 /// <param name="applicationPath">Path to the application.</param>
 /// <param name="osExceptionType">OS exception type.</param>
 /// <param name="osExceptionCode">OS exception code.</param>
 /// <param name="osExceptionAddress">OS exception address.</param>
 /// <param name="sid">When tracking an analytics session, logs can be
 /// part of the session by specifying this identifier.
 /// This attribute is optional, a missing value means the session
 /// tracking is disabled (like when using only error reporting
 /// feature).
 /// Concrete types like StartSessionLog or PageLog are always part of a
 /// session and always include this identifier.
 /// </param>
 /// <param name="parentProcessId">Parent's process identifier.</param>
 /// <param name="parentProcessName">Parent's process name.</param>
 /// <param name="errorThreadId">Error thread identifier.</param>
 /// <param name="errorThreadName">Error thread name.</param>
 /// <param name="errorAttachment">Error attachment.</param>
 /// <param name="architecture">CPU architecture.</param>
 /// <param name="architectureVariantId">CPU architecture
 /// variant.</param>
 /// <param name="exceptionType">Exception type.</param>
 /// <param name="exceptionReason">Exception reason.</param>
 /// <param name="threads">Thread stack frames associated to the
 /// error.</param>
 /// <param name="binaries">Binaries associated to the error.</param>
 /// <param name="registers">Registers.</param>
 /// <param name="exception">Exception associated to the error.
 /// This is used for example to send a .NET exception from the Xamarin
 /// SDK.
 /// </param>
 public AppleErrorLog(long toffset, Device device, System.Guid id, int processId, string processName, bool fatal, long appLaunchToffset, int primaryArchitectureId, string applicationPath, string osExceptionType, string osExceptionCode, string osExceptionAddress, System.Guid?sid = default(System.Guid?), int?parentProcessId = default(int?), string parentProcessName = default(string), long?errorThreadId = default(long?), string errorThreadName = default(string), ErrorAttachment errorAttachment = default(ErrorAttachment), string architecture = default(string), int?architectureVariantId = default(int?), string exceptionType = default(string), string exceptionReason = default(string), IList <Thread> threads = default(IList <Thread>), IList <Binary> binaries = default(IList <Binary>), IDictionary <string, string> registers = default(IDictionary <string, string>), Exception exception = default(Exception))
     : base(toffset, device, id, processId, processName, fatal, appLaunchToffset, sid, parentProcessId, parentProcessName, errorThreadId, errorThreadName, errorAttachment, architecture)
 {
     PrimaryArchitectureId = primaryArchitectureId;
     ArchitectureVariantId = architectureVariantId;
     ApplicationPath       = applicationPath;
     OsExceptionType       = osExceptionType;
     OsExceptionCode       = osExceptionCode;
     OsExceptionAddress    = osExceptionAddress;
     ExceptionType         = exceptionType;
     ExceptionReason       = exceptionReason;
     Threads   = threads;
     Binaries  = binaries;
     Registers = registers;
     Exception = exception;
 }
 /// <summary>
 /// Initializes a new instance of the ManagedErrorLog class.
 /// </summary>
 /// <param name="toffset">Corresponds to the number of milliseconds
 /// elapsed between the time the request is sent and the time the log
 /// is emitted.</param>
 /// <param name="id">Error identifier.</param>
 /// <param name="processId">Process identifier.</param>
 /// <param name="processName">Process name.</param>
 /// <param name="fatal">If true, this error report is an application
 /// crash.</param>
 /// <param name="appLaunchToffset">Corresponds to the number of
 /// milliseconds elapsed between the time the error occurred and the
 /// app was launched.</param>
 /// <param name="exception">Exception associated to the error.</param>
 /// <param name="sid">When tracking an analytics session, logs can be
 /// part of the session by specifying this identifier.
 /// This attribute is optional, a missing value means the session
 /// tracking is disabled (like when using only error reporting
 /// feature).
 /// Concrete types like StartSessionLog or PageLog are always part of a
 /// session and always include this identifier.
 /// </param>
 /// <param name="parentProcessId">Parent's process identifier.</param>
 /// <param name="parentProcessName">Parent's process name.</param>
 /// <param name="errorThreadId">Error thread identifier.</param>
 /// <param name="errorThreadName">Error thread name.</param>
 /// <param name="errorAttachment">Error attachment.</param>
 /// <param name="architecture">CPU architecture.</param>
 /// <param name="buildId">Unique ID for a Xamarin build or another
 /// similar technology.</param>
 /// <param name="threads">Thread stack frames associated to the
 /// error.</param>
 public ManagedErrorLog(long toffset, Device device, System.Guid id, int processId, string processName, bool fatal, long appLaunchToffset, Exception exception, System.Guid?sid = default(System.Guid?), int?parentProcessId = default(int?), string parentProcessName = default(string), long?errorThreadId = default(long?), string errorThreadName = default(string), ErrorAttachment errorAttachment = default(ErrorAttachment), string architecture = default(string), string buildId = default(string), IList <Thread> threads = default(IList <Thread>))
     : base(toffset, device, id, processId, processName, fatal, appLaunchToffset, sid, parentProcessId, parentProcessName, errorThreadId, errorThreadName, errorAttachment, architecture)
 {
     BuildId   = buildId;
     Exception = exception;
     Threads   = threads;
 }