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