GraphException Class

Definition

Base class for any graph library-focused exceptions

public class GraphException : Exception
Inheritance
GraphException

Constructors

GraphException(GraphException, String)

Constructor. Use it for server side issues when an inner exception was caught and we need to wrap it.

GraphException(GraphStatusCode, String)

Constructor. Use it when no inner (e.g. external) exception is available.

GraphException(GraphStatusCode, Exception, String)

Constructor. Use it when an inner exception was caught and we need to wrap it.

Properties

Context

Current external connection (or external execution context) name, as set by the caller

ErrorCode

Error code associated with the exception. Semantic for graph error codes is described in tinkerpop's provider documentation: http://tinkerpop.apache.org/docs/current/dev/provider/#_graph_driver_provider_requirements General detail regarding HTTP Error codes as described by RFC 2615: http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html

Frame

Current logical frame (name of innermost execution scope)

RequestId

Unique identifier (optionally provided by the client caller code) for the request associated with the execution at the moment when the exception was created/thrown.

Methods

ToString()

Converts an exception to a display string.

Extension Methods

CheckIotHubErrorCode(Exception, ErrorCode[])
DisablePrepareForRethrow(Exception)
GetReferenceCode(Exception)
IsFatal(Exception)
PrepareForRethrow(Exception)
ToStringSlim(Exception)
Unwind(Exception)
Unwind(Exception, Type[])
Unwind<TException>(Exception)
IsWrappedExceptionTransient(Exception)
FindInnerException<T>(Exception)