EonaCat.Network/EonaCat.Network/System/Sockets/Web/EventArgs/ErrorEventArgs.cs

25 lines
620 B
C#

// This file is part of the EonaCat project(s) which is released under the Apache License.
// See the LICENSE file or go to https://EonaCat.com/License for full license details.
using System;
namespace EonaCat.Network
{
public class ErrorEventArgs : EventArgs
{
internal ErrorEventArgs(string message)
: this(message, null)
{
}
internal ErrorEventArgs(string message, Exception exception)
{
Message = message;
Exception = exception;
}
public Exception Exception { get; }
public string Message { get; }
}
}