LogoLogo
AMPS Java Client 5.3.4
AMPS Java Client 5.3.4
  • Welcome to the AMPS Java Client
    • Before You Start
    • Obtaining and Installing the AMPS Java Client
    • Your First AMPS Program
      • Client Identification
      • Connection Strings for AMPS
      • Connection Parameters for AMPS
      • Providing Credentials to AMPS
    • Subscriptions
      • Content Filtering
        • Changing the Filter on a Subscription
      • Understanding Message Objects
      • Synchronous Message Processing
      • Asynchronous Message Processing
        • Understanding Threading
      • Regular Expression Subscriptions
      • Ending Subscriptions
    • Error Handling
      • Exceptions
      • Exception Types
      • Exception Handling and Asynchronous Message Processing
      • Controlling Blocking with Command Timeout
      • Disconnect Handling
        • Using a Heartbeat to Detect Disconnection
        • Managing Disconnection
        • Replacing Disconnect Handling
      • Unexpected Messages
      • Unhandled Exceptions
      • Detecting Write Failures
      • Monitoring Connection State
    • State of the World
      • SOW and Subscribe
      • Setting Batch Size
      • Managing SOW Contents
      • Client Side Conflation
    • Using Queues
      • Backlog and Smart Pipelining
      • Acknowledging Messages
      • Acknowledgment Batching
      • Returning a Message to the Queue
      • Manual Acknowledgment
      • Samples of Using a Queue
    • Delta Publish and Subscribe
      • Delta Subscribe
      • Delta Pubilsh
    • High Availability
    • AMPS Programming: Working with Commands
    • Utility Classes
    • Advanced Topics
    • Exceptions Reference
    • AMPS Server Documentation
    • API Documentation
Powered by GitBook

Get Help

  • FAQ
  • Legacy Documentation
  • Support / Contact Us

Get AMPS

  • Evaluate
  • Develop

60East Resources

  • Website
  • Privacy Policy

Copyright 2013-2024 60East Technologies, Inc.

On this page
Export as PDF
  1. Welcome to the AMPS Java Client
  2. Error Handling

Exception Types

The following table details each of the exception types thrown by AMPS.

Exception
When
Notes

AlreadyConnectedException

Connecting

Thrown when connect() is called on a Client that is already connected.

AMPSException

Anytime

Base class for all AMPS exceptions.

AuthenticationException

Anytime

Indicates that an authentication failure occurred on the server.

BadFilterException

Subscribing

This typically indicates a syntax error in a filter expression.

BadRegexTopicException

Subscribing

Indicates that a malformed regular expression was found in the topic name.

CommandException

Anytime

Base class for all exceptions relating to commands sent to AMPS.

ConnectionException

Anytime

Base class for all exceptions relating to the state of the AMPS connection.

ConnectionRefusedException

Connecting

The connection was actively refused by the server. Validate that the server is running, that network connectivity is available, and the settings on the client match those on the server.

DisconnectedException

Anytime

No connection is available when AMPS needed to send data to the server or the user's disconnect handler threw an exception.

InvalidTopicException

Subscribe or Query

The topic is not configured for the requested operation. For example, a sow command was issued for a topic that is not in the SOW or a bookmark subscribe was issued for a topic that is not recorded in the transaction log.

InvalidTransportOptionsException

Connecting

An invalid option or option value was specified in the URI.

InvalidURIException

Connecting

The URI string provided to connect() was formatted improperly.

MessageTypeException

Connecting

The class for a given transport's message type was not found in AMPS.

MessageTypeNotFoundException

Connecting

The message type specified in the URI was not found in AMPS.

NameInUseException

Connecting

The client name (specified when instantiating Client) is already in use on the server.

NotEntitledException

Connecting Subscribing

The user does not have permission for the requested command (logging on or subscribing).

RetryOperationException

Anytime

An error occurred that caused processing of the last command to be aborted. Try issuing the command again.

StreamException

Anytime

Indicates that data corruption has occurred on the connection between the client and server. This usually indicates an internal error inside of AMPS—please contact AMPS support.

SubscriptionAlreadyExistsException

Subscribing

A subscription has been requested using the same CommandId as another subscription. Create a unique CommandId for every subscription.

TimedOutException

Anytime

A timeout occurred waiting for a response to a command.

TransportTypeException

Connecting

Thrown when a transport type, unknown to AMPS is selected in the URI.

UnknownException

Anytime

Thrown when an internal error occurs. Contact AMPS support immediately.

PreviousExceptionsNextException Handling and Asynchronous Message Processing

Last updated 3 months ago