1
0
mirror of https://github.com/winscp/winscp.git synced 2026-10-24 02:28:55 +03:00
Files
winscp/dotnet/SessionException.cs
Martin Prikryl 3826bbdf31 Logging exceptions
Source commit: ebd1d9a5e3cfcaaa3e48c591734b870135bf633c
2018-01-28 04:54:07 +01:00

25 lines
653 B
C#

using System;
using System.Runtime.InteropServices;
namespace WinSCP
{
[Guid("91109A4F-D81A-4326-BEC5-1AB26EBF89A6")]
[ClassInterface(Constants.ClassInterface)]
[ComVisible(true)]
public class SessionException : Exception
{
public Session Session { get; private set; }
internal SessionException(Session session, string message) :
this(session, message, null)
{
}
internal SessionException(Session session, string message, Exception innerException) :
base(message, innerException)
{
Session = session;
}
}
}