//--- Methods --- /// <summary> /// Creates and returns a string representation of the current exception. /// </summary> /// <returns>A string representation of the current exception.</returns> public override string ToString() { if (Response != null) { return(base.ToString() + " " + DreamMessage.GetStatusStringOrNull(Response)); } return(base.ToString()); }
//--- Constructors --- /// <summary> /// Create new instance with a message describing the reason for the aborted request. /// </summary> /// <param name="response">Message describing the reason for the aborted request.</param> public DreamAbortException(DreamMessage response) : base(DreamMessage.GetStatusStringOrNull(response)) { this.Response = response; }