Files
PSProxmoxVE/src/PSProxmoxVE.Core/Exceptions/PveNotConnectedException.cs
T
Clint Branham 14cbff9877 docs: add XML doc comments to Core public API and remove CS1591 suppression
- Add missing XML doc comments to all public types and members in
  PSProxmoxVE.Core (Authentication, Exceptions, Models, Client)
- Remove CS1591 suppression from PSProxmoxVE.Core.csproj
- Build succeeds with 0 warnings

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-03-20 12:21:54 -05:00

22 lines
867 B
C#

using System;
namespace PSProxmoxVE.Core.Exceptions
{
/// <summary>Exception thrown when an operation is attempted without an active Proxmox VE session.</summary>
public class PveNotConnectedException : Exception
{
/// <summary>Initializes a new instance indicating no active session exists.</summary>
public PveNotConnectedException()
: base("No active Proxmox VE session. Run Connect-PveServer first.")
{
}
/// <summary>Initializes a new instance indicating no active session exists, with an inner exception.</summary>
/// <param name="innerException">The exception that caused this failure.</param>
public PveNotConnectedException(Exception innerException)
: base("No active Proxmox VE session. Run Connect-PveServer first.", innerException)
{
}
}
}