Class NotConnectedException
Exception thrown when xrpl.js is not connected to rippled server.
Inheritance
object
Exception
NotConnectedException
Namespace: Xrpl.Client.Exceptions
Assembly: Xrpl.dll
Syntax
public class NotConnectedException : XrplException
Constructors
| Edit this page View SourceNotConnectedException(string)
Declaration
public NotConnectedException(string message = null)
Parameters
| Type | Name | Description |
|---|---|---|
| string | message |
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 SourceDefaultMessage
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 |