• Guides & Articles
  • API Documentation

    Show / Hide Table of Contents
    • VpnSDK.Public
      • OpenVpnConfiguration
      • OpenVpnConnectionConfigurationBuilder
      • PositionInfoEventArgs
      • RasConfiguration
      • RasConnectionConfigurationBuilder
      • SDKBuilder
    • VpnSDK.Public.Enums
      • AuthenticationStatus
      • ConnectionStatus
      • NetworkConnectionType
      • NetworkProtocolType
      • OpenVpnCipherType
      • PositionInfoStatus
      • RefreshLocationListStatus
    • VpnSDK.Public.Exceptions
      • VpnSDKAPIException
      • VpnSDKAuthenticationException
      • VpnSDKBaseException
      • VpnSDKConnectionAlreadyEstablishedException
      • VpnSDKConnectionException
      • VpnSDKConnectionTerminatedException
      • VpnSDKCoreException
      • VpnSDKEmptyAvailableVpnProtocolsException
      • VpnSDKFetchLocationsException
      • VpnSDKInvalidConfigurationException
      • VpnSDKNotAuthorizedException
      • VpnSDKNullLocationException
      • VpnSDKOAuthException
      • VpnSDKUnsupportedProtocolException
      • VpnSDKVPNAuthenticationException
    • VpnSDK.Public.Extensions
      • ExceptionExtensions
      • LoadLevel
      • RegionLoadChecker
    • VpnSDK.Public.Helpers
      • VpnProtocolDiagnostics
    • VpnSDK.Public.Interfaces
      • IBestAvailable
      • IConnectionConfiguration
      • ILocation
      • IOpenVpnConnectionConfiguration
      • IRasConnectionConfiguration
      • IRegion
      • ISDK
      • IServer
      • IUser
    • VpnSDK.Public.Messages
      • RefreshLocationListMessage

    Class ExceptionExtensions

    ExceptionExtentions class.

    Inheritance
    Object
    ExceptionExtensions
    Namespace: VpnSDK.Public.Extensions
    Assembly: VpnSDK.dll
    Syntax
    public static class ExceptionExtensions

    Methods

    GetAllExceptionMessages(Exception)

    Gets all exception messages.

    Declaration
    public static IEnumerable<string> GetAllExceptionMessages(this Exception ex)
    Parameters
    Type Name Description
    Exception ex

    The exception.

    Returns
    Type Description
    IEnumerable<String>

    IEnumerable<System.String>.

    GetAllExceptions(Exception)

    Gets all inner exceptions.

    Declaration
    public static IEnumerable<Exception> GetAllExceptions(this Exception ex)
    Parameters
    Type Name Description
    Exception ex

    The exception.

    Returns
    Type Description
    IEnumerable<Exception>

    IEnumerable<Exception>.

    Back to top Pre-release documentation. These do not represent the final product and are subject to change.