/// <summary> /// Initializes a new instance of the AuthenticationException class from the specified SerializationInfo and StreamingContext instances. /// </summary> /// <param name="info">A SerializationInfo that contains the information required to serialize the new AuthenticationException.</param> /// <param name="context">A StreamingContext that contains the source of the serialized stream that is associated with the new AuthenticationException.</param> protected AuthenticationException(SerializationInfo info, StreamingContext context) : base(info, context) { _errorCode = (Yahoo.AuthenticationErrorCode)info.GetInt32("ErrorCode"); }
/// <summary> /// Initializes a new instance of the AuthenticationException class with the specified error message, nested exception and error code. /// </summary> /// <param name="message">The text of the error message.</param> /// <param name="innerException">A nested exception.</param> /// <param name="errorCode">The <see cref="Yahoo.AuthenticationErrorCode">AuthenticationErrorCode</see>.</param> public AuthenticationException(string message, Exception innerException, Yahoo.AuthenticationErrorCode errorCode) : base(message, innerException) { _errorCode = errorCode; }