using System; using System.Collections.Generic; using System.Linq; using System.Text; namespace Intel.Management.Wsman { /// ///An exception that is thrown when an WsMan Connection exception occurs /// public class WsmanConnectionException : WsmanException { /// /// Initializes a new instance of the WsmanConnectionException class with a message string /// /// The error message string public WsmanConnectionException(string message) : base(message) { } /// /// Initializes a new instance of the WsmanConnectionException class with a message string a inner exception /// /// The error message string /// The inner exception reference public WsmanConnectionException(string message, Exception inner) : base(message, inner) { } /// /// Get the status of any System.Net.WebExceptionStatus the cause the Wsman request to faile /// public System.Net.WebExceptionStatus Status { get { if (InnerException != null && InnerException is System.Net.WebException) { return ((System.Net.WebException)InnerException).Status; } else return System.Net.WebExceptionStatus.UnknownError; } } } }