/// <summary> /// Creates a new instance of the <see cref="MeetupApiException"/> class. /// </summary> /// <param name="info"> /// The <see cref="System.Runtime.Serialization.SerializationInfo"/> /// that holds the serialized object data about the exception being thrown. /// </param> /// <param name="context"> /// The <see cref="System.Runtime.Serialization.StreamingContext"/> /// that contains contextual information about the source or destination. /// </param> protected MeetupApiException(SerializationInfo info, StreamingContext context) : base(info, context) { if (info != null) { _error = (MeetupApiError)info.GetValue("Error", typeof(MeetupApiError)); } }
/// <summary> /// Creates a new instance of the <see cref="MeetupApiException"/> class. /// </summary> /// <param name="info"> /// The <see cref="System.Runtime.Serialization.SerializationInfo"/> /// that holds the serialized object data about the exception being thrown. /// </param> /// <param name="context"> /// The <see cref="System.Runtime.Serialization.StreamingContext"/> /// that contains contextual information about the source or destination. /// </param> protected MeetupApiException(SerializationInfo info, StreamingContext context) : base(info, context) { if (info != null) { _error = (MeetupApiError)info.GetValue("Error", typeof(MeetupApiError)); } }
/// <summary> /// Creates a new instance of the <see cref="MeetupApiException"/> class. /// </summary> /// <param name="message">A message about the exception.</param> /// <param name="innerException">The inner exception that is the cause of the current exception.</param> public MeetupApiException(string message, Exception innerException) : base(message, innerException) { _error = MeetupApiError.ServerError; }
/// <summary> /// Creates a new instance of the <see cref="MeetupApiException"/> class. /// </summary> /// <param name="message">A message about the exception.</param> /// <param name="error">The Meetup error.</param> public MeetupApiException(string message, MeetupApiError error) : base(message) { _error = error; }
/// <summary> /// Creates a new instance of the <see cref="MeetupApiException"/> class. /// </summary> /// <param name="message">A message about the exception.</param> /// <param name="innerException">The inner exception that is the cause of the current exception.</param> public MeetupApiException(string message, Exception innerException) : base(message, innerException) { _error = MeetupApiError.ServerError; }
/// <summary> /// Creates a new instance of the <see cref="MeetupApiException"/> class. /// </summary> /// <param name="message">A message about the exception.</param> /// <param name="error">The Meetup error.</param> public MeetupApiException(string message, MeetupApiError error) : base(message) { _error = error; }