Show / Hide Table of Contents

Class NotConnectedException

Exception thrown when xrpl.js is not connected to rippled server.

Inheritance
object
Exception
XrplException
NotConnectedException
ClientDisconnectedException
ConnectHandlerFailedException
ConnectionClosedPermanentlyException
NotConnectingException
ReconnectExhaustedException
RequestRefusedException
Namespace: Xrpl.Client.Exceptions
Assembly: Xrpl.dll
Syntax
public class NotConnectedException : XrplException

Constructors

| Edit this page View Source

NotConnectedException(string)

Declaration
public NotConnectedException(string message = null)
Parameters
Type Name Description
string message
| Edit this page View Source

NotConnectedException(string, Exception?)

Keeps the failure that caused this one.

Declaration
public NotConnectedException(string message, Exception? innerException)
Parameters
Type Name Description
string message
Exception innerException
Remarks

A subtype that has a cause - the handler exception behind ConnectHandlerFailedException - has nowhere else to put it: System.Exception.InnerException has no setter, so it can only be passed up to System.Exception at construction.

Fields

| Edit this page View Source

DefaultMessage

The message used when none is given. A bare throw new NotConnectedException() used to carry the runtime's "Exception of type ... was thrown", which says nothing to a consumer that classifies failures by their text.

Declaration
public const string DefaultMessage = "The client is not connected to a server. Call Connect() first, or wait for the connection to be restored."
Field Value
Type Description
string

Extension Methods

XrplErrorClassifier.Classify(Exception)
  • Edit this page
  • View Source
In this article
Back to top Generated by DocFX