<PackageReference Include="Relativity.Server.Import.SDK" Version="2.9.2" />

ExceptionHelper

static class ExceptionHelper
Defines static helper methods to perform common exception handling.
public const string BatchInProgressMessage = "Batch In Progress"

Exception message that tells user that import of the current batch is still in progress.

public const int DiskFullHResultHResult = -2147024784

The disk full HResult value.

The list of fatal exception candidates.

The list of Kepler specific fatal exception candidates.

public const int HandleDiskFullHResult = -2147024857

The handle disk full HResult value.

public const string IllegalCharactersInPathMessage = "Illegal characters in path."

The illegal characters in path constant message.

public const string TryAgainAdminFatalMessage = "Try again. If the problem persists please contact your system administrator for assistance."

A fatal exception message that tells user to try again and contact an admin if the problem persists.

public static string AppendTryAgainAdminFatalMessage(string message)

Appends TryAgainAdminFatalMessage to the fatal exception message and returns a new message.

public static string GetDetailedFatalMessage(HttpStatusCode statusCode)

Gets the detailed fatal message for the specified HTTP status code.

public static string GetDetailedFatalMessage(WebExceptionStatus status)

Gets the detailed fatal message for the specified web exception status code.

public static bool IsBatchInProgressException(Exception exception)

Check if exception has message indicating that batch import is in progress.

public static bool IsEndpointNotFound(SoapException exception, string name)

Determines whether the SOAP exception is thrown when an endpoint is not found.

public static bool IsFatalException(Exception exception)

Determines whether the exception is considered fatal.

public static bool IsFatalKeplerException(Exception exception)

Determines whether the Kepler exception is considered fatal.

public static bool IsFatalWebException(Exception exception)

Gets a value indicating whether the specified exception is considered fatal.

public static bool IsFatalWebException(WebException exception)

Gets a value indicating whether the specified web exception is considered fatal.

public static bool IsHttpStatusCodeFatalError(HttpStatusCode statusCode)

Gets a value indicating whether the specified HTTP status code is a fatal error.

public static bool IsIllegalCharactersInPathException(Exception exception)

Determines whether the specified exception is due to illegal characters in the path.

public static bool IsOutOfDiskSpaceException(Exception exception)

Determines whether the specified exception is due to running out of disk space.

public static bool IsSoapEndpointNotFound(Exception exception)

Determines whether the SOAP exception is thrown when an endpoint is not found.

public static bool IsSoapEndpointNotFound(Exception exception, string name)

Determines whether the SOAP exception is thrown when an endpoint is not found.

public static bool IsSuspectedHttpTimeoutException(Exception exception)

Determines whether the exception indicates an HTTP timeout.

Gets a value indicating whether the specified web exception status code is a fatal error.