/// <summary> /// Initializes a new instance of the <see cref="SlackException"/> class. /// </summary> /// <param name="info">The <see cref="T:System.Runtime.Serialization.SerializationInfo" /> that holds the serialized object data about the exception being thrown.</param> /// <param name="context">The <see cref="T:System.Runtime.Serialization.StreamingContext" /> that contains contextual information about the source or destination.</param> public SlackException(SerializationInfo info, StreamingContext context) : base(info, context) { ErrorCode = (SlackErrorCode)info.GetValue("ErrorCode", typeof(SlackErrorCode)); }
/// <summary> /// Initializes a new instance of the <see cref="SlackException"/> class. /// </summary> /// <param name="errorCode">The error code.</param> public SlackException(SlackErrorCode errorCode) { ErrorCode = errorCode; }