1
0

SessionLocalException.cs 909 B

123456789101112131415161718192021222324252627
  1. using System;
  2. using System.Runtime.InteropServices;
  3. using System.Globalization;
  4. namespace WinSCP
  5. {
  6. [Guid("59B362D6-7FD3-4EF0-A3B6-E3244F793778")]
  7. [ClassInterface(Constants.ClassInterface)]
  8. [ComVisible(true)]
  9. public sealed class SessionLocalException : SessionException
  10. {
  11. internal SessionLocalException(Session session, string message) :
  12. base(session, message)
  13. {
  14. }
  15. internal SessionLocalException(Session session, string message, Exception innerException) :
  16. base(session, message, innerException)
  17. {
  18. }
  19. internal static SessionLocalException CreateElementNotFound(Session session, string localName)
  20. {
  21. return new SessionLocalException(session, string.Format(CultureInfo.CurrentCulture, "Element \"{0}\" not found in the log file", localName));
  22. }
  23. }
  24. }