Table of Contents

Namespace WhalesSecret.TradeScriptLib.Exceptions

Classes

AlreadyExistsException

Exception for cases when a resource is already obtained.

ApiRequestLimitReachedException

Exception for cases when an exchange API limit was reached.

BudgetCalculationException

Exception for cases when calculating the trading strategy budget is required but cannot be done.

BudgetExceededException

Exception for cases when placement of an order would exceed the trading strategy budget.

ConnectionInitializationException

Exception for the following cases:

  • a connection with an exchange server cannot be established (e.g. networking issues, authentication issues, etc.), or
  • an exchange API initialization procedure fails for some reason (e.g. an invalid or and unexpected response for an API request).
DatabaseErrorException

Exception for cases when a database operation failed due to database failure.

DependencyNotFoundException

Exception for cases when a route to a remote script cannot be created because no script of the requested type can be found.

ExchangeIsUnderMaintenanceException

Exception for cases when the exchange is in the maintenance mode.

ExchangeResponseTimeoutException

Exception for cases when exchange does not respond in timely manner.

FileAccessException

Exception for cases when a file cannot be open, read, or written to.

FileNameInvalidException

Exception for cases when a file name is not valid in the given context.

InterfaceCallFailedException

Exception for cases when a method, called on a dependency interface, failed.

InvalidArgumentException

Exception for cases when one or more arguments of a method are not valid in the context of the given method.

InvalidExchangeResponseException

Exception for cases when exchange sends us an unexpected response message.

InvalidProductLicenseException

Exception for cases when an invalid product license has been provided.

InvalidRequestDataException

Exception for cases when a request sent to the exchange is invalid for some reason.

InvalidStateException

Exception for cases when an operation is not valid for the current state of the object.

MalfunctionException

Exception for cases when an internal API subsystem throws an unexpected exception and WhalesSecret does not know how to recover from the situation.

NotAvailableException

Exception for cases when a requested feature or a component is not available.

NotConnectedException

Exception for situations where an exchange API request could not be sent due to a lack of connection.

For example an API request to an exchange or a remote call message to another script, or when it is known that it will not be possible to further communicate with the counterparty. This can be due to loss of network connection, or intentional disconnection or shutdown.

NotConnectedTimeoutException

Exception thrown when a connection fails to be established and the connection process times out.

NotFoundException

Exception for cases when an object or a resource with the given name or identifier cannot be found.

OperationFailedException

Exception for cases when an operation failed in general.

ProductLicenseRestrictionException

Exception for cases when a feature is not available or is limited because of a license restriction.

RejectedException

Exception for cases when a request sent to the exchange is valid but is rejected by exchange for some reason.

SanityCheckException

Exception to be thrown when an internal condition that should never occur occurs.

Such an error should always lead to immediate application termination.

ScriptApiException

Base class for all script API exceptions.

SerializationException

Exception for cases when an object cannot serialized to or deserialized from a byte array or JSON string.

StorageQuotaReachedException

Exception for cases when the script storage operation cannot be completed because the quota has been reached.

UnsupportedDependencyInterfaceException

Exception for cases when a dependency for an unsupported interface type was requested.

UnsupportedInterfaceArgumentException

Exception for cases when a method, to be called on a dependency interface, contains an argument of an unsupported type.

UnsupportedInterfaceResultException

Exception for cases when a method, to be called on a dependency interface, returns a value of an unsupported type.