| | | 1 | | using System; |
| | | 2 | | #if FEATURE_BINARY_SERIALIZATION |
| | | 3 | | using System.Runtime.Serialization; |
| | | 4 | | #endif // FEATURE_BINARY_SERIALIZATION |
| | | 5 | | |
| | | 6 | | namespace Renci.SshNet.Common |
| | | 7 | | { |
| | | 8 | | /// <summary> |
| | | 9 | | /// The exception that is thrown when a proxy connection cannot be established. |
| | | 10 | | /// </summary> |
| | | 11 | | #if FEATURE_BINARY_SERIALIZATION |
| | | 12 | | [Serializable] |
| | | 13 | | #endif // FEATURE_BINARY_SERIALIZATION |
| | | 14 | | public class ProxyException : SshException |
| | | 15 | | { |
| | | 16 | | /// <summary> |
| | | 17 | | /// Initializes a new instance of the <see cref="ProxyException"/> class. |
| | | 18 | | /// </summary> |
| | 0 | 19 | | public ProxyException() |
| | 0 | 20 | | { |
| | 0 | 21 | | } |
| | | 22 | | |
| | | 23 | | /// <summary> |
| | | 24 | | /// Initializes a new instance of the <see cref="ProxyException"/> class. |
| | | 25 | | /// </summary> |
| | | 26 | | /// <param name="message">The message.</param> |
| | | 27 | | public ProxyException(string message) |
| | 105 | 28 | | : base(message) |
| | 105 | 29 | | { |
| | 105 | 30 | | } |
| | | 31 | | |
| | | 32 | | /// <summary> |
| | | 33 | | /// Initializes a new instance of the <see cref="ProxyException"/> class. |
| | | 34 | | /// </summary> |
| | | 35 | | /// <param name="message">The message.</param> |
| | | 36 | | /// <param name="innerException">The inner exception.</param> |
| | | 37 | | public ProxyException(string message, Exception innerException) |
| | 0 | 38 | | : base(message, innerException) |
| | 0 | 39 | | { |
| | 0 | 40 | | } |
| | | 41 | | |
| | | 42 | | #if FEATURE_BINARY_SERIALIZATION |
| | | 43 | | /// <summary> |
| | | 44 | | /// Initializes a new instance of the <see cref="ProxyException"/> class. |
| | | 45 | | /// </summary> |
| | | 46 | | /// <param name="info">The <see cref="SerializationInfo"/> that holds the serialized object data about the excep |
| | | 47 | | /// <param name="context">The <see cref="StreamingContext"/> that contains contextual information about the sour |
| | | 48 | | /// <exception cref="ArgumentNullException">The <paramref name="info"/> parameter is <see langword="null"/>.</ex |
| | | 49 | | /// <exception cref="SerializationException">The class name is <see langword="null"/> or <see cref="Exception.HR |
| | | 50 | | protected ProxyException(SerializationInfo info, StreamingContext context) |
| | 0 | 51 | | : base(info, context) |
| | 0 | 52 | | { |
| | 0 | 53 | | } |
| | | 54 | | #endif // FEATURE_BINARY_SERIALIZATION |
| | | 55 | | } |
| | | 56 | | } |