/// <summary> /// Initializes a new instance of the <see cref="BrowserStackAutomateException"/> class with a specified error message and error detail. /// </summary> /// <param name="message">The message that describes the error.</param> /// <param name="errorDetail">The error detail, if any.</param> /// <param name="innerException"> /// The exception that is the cause of the current exception, or <see langword="null"/> if no inner exception is specified. /// </param> public BrowserStackAutomateException(string message, BrowserStackAutomateError errorDetail, Exception innerException) : base(message, innerException) { ErrorDetail = errorDetail; }
/// <summary> /// Initializes a new instance of the <see cref="BrowserStackAutomateException"/> class with a specified error message. /// </summary> /// <param name="errorDetail">The error detail, if any.</param> public BrowserStackAutomateException(BrowserStackAutomateError errorDetail) : base(errorDetail?.Message ?? DefaultMessage) { ErrorDetail = errorDetail; }