Files
ShhShell/ShhShell/SSH/SSHError.swift
neon443 76601e0470 made more funcitons throw errors instead of just return, more informative
added name to host
removed hostkey from connectionview as its in keys now
fix crash on force unrap in keypair navigatoin labels
added hostinvalid() to check if the host is invalid
added case notconnected for keyerror
openshell is throwing
moved stuff round
2025-06-25 17:17:47 +01:00

28 lines
424 B
Swift

//
// SSHError.swift
// ShhShell
//
// Created by neon443 on 23/06/2025.
//
import Foundation
enum SSHError: Error {
case connectionFailed(String)
case communicationError(String)
case backendError(String)
}
enum AuthError: Error {
case rejectedCredentials
case notConnected
}
enum KeyError: Error {
case notConnected
case importPubkeyError
case importPrivkeyError
case pubkeyRejected
case privkeyRejected
}