mirror of
https://github.com/GoodOlClint/PSProxmoxVE.git
synced 2026-08-09 13:59:24 +00:00
d802b117ba
Add PveSession, PveAuthenticator, PveVersion, and PveAuthMode. Support ticket-based auth (username/password with 2hr expiry) and API token auth (USER@REALM!TOKENID=UUID format). Version detection on connect via GET /api2/json/version. Custom exception types for API errors, expired sessions, missing connections, version mismatches, and task failures. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
19 lines
617 B
C#
19 lines
617 B
C#
using System;
|
|
|
|
namespace PSProxmoxVE.Core.Exceptions
|
|
{
|
|
/// <summary>Exception thrown when the Proxmox VE session ticket has expired</summary>
|
|
public class PveSessionExpiredException : Exception
|
|
{
|
|
public PveSessionExpiredException()
|
|
: base("Your Proxmox VE session has expired. Please run Connect-PveServer to establish a new session.")
|
|
{
|
|
}
|
|
|
|
public PveSessionExpiredException(Exception innerException)
|
|
: base("Your Proxmox VE session has expired. Please run Connect-PveServer to establish a new session.", innerException)
|
|
{
|
|
}
|
|
}
|
|
}
|