-
Notifications
You must be signed in to change notification settings - Fork 6
/
ProtocolException.cs
27 lines (25 loc) · 995 Bytes
/
ProtocolException.cs
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
using System;
namespace ZabbixSender.Async
{
/// <summary>
/// Represents an error working with Zabbix sender protocol.
/// </summary>
public sealed class ProtocolException : Exception
{
/// <summary>
/// Initializes a new instance of ZabbixSender.Async.ProtocolException with given error message.
/// </summary>
/// <param name="message">An error message.</param>
public ProtocolException(string message) :
base($"Protocol error - {message}.")
{ }
/// <summary>
/// Initializes a new instance of ZabbixSender.Async.ProtocolException with given error message and inner exception.
/// </summary>
/// <param name="message">An error message.</param>
/// <param name="innerException">An inner exception.</param>
public ProtocolException(string message, Exception innerException) :
base($"Protocol error - {message}.", innerException)
{ }
}
}