1
0
mirror of https://github.com/winscp/winscp.git synced 2026-10-24 02:28:55 +03:00
Files
winscp/dotnet/SessionLocalException.cs
Martin Prikryl 2e4b4738f0 5.2
2018-01-11 15:30:21 +01:00

28 lines
909 B
C#

using System;
using System.Runtime.InteropServices;
using System.Globalization;
namespace WinSCP
{
[Guid("59B362D6-7FD3-4EF0-A3B6-E3244F793778")]
[ClassInterface(Constants.ClassInterface)]
[ComVisible(true)]
public sealed class SessionLocalException : SessionException
{
internal SessionLocalException(Session session, string message) :
base(session, message)
{
}
internal SessionLocalException(Session session, string message, Exception innerException) :
base(session, message, innerException)
{
}
internal static SessionLocalException CreateElementNotFound(Session session, string localName)
{
return new SessionLocalException(session, string.Format(CultureInfo.CurrentCulture, "Element \"{0}\" not found in the log file", localName));
}
}
}