Apache Flex 4.16.0 API Reference | All Packages | All Classes | Index | Frames No Frames |
InvalidDestinationError

Package | mx.messaging.errors
Class | public class InvalidDestinationError
Inheritance | InvalidDestinationError ChannelError MessagingError Error

Language Version : | ActionScript 3.0

Product Versions : | BlazeDS 4, LCDS 3

Runtime Versions : | Flash Player 9, AIR 1.1

This error is thrown when a destination can't be accessed or is not valid. This error is thrown by the following methods/properties within the framework:

- `ServerConfig.getChannelSet()` if an invalid destination is specified.
- `ServerConfig.getProperties()` if an invalid destination is specified.
- `Channel.send()` if no destination is specified for the message to send.
- `MessageAgent.destination` setter if the destination value is null or zero length.
- `Producer.send()` if no destination is specified for the Producer or message to send.
- `Consumer.subscribe()` if no destination is specified for the Consumer.

Public Methods
Hide Inherited Public Methods
Show Inherited Public Methods

| Method | Defined By
--- | --- | ---
|  | InvalidDestinationError(msg:String) Constructs a new instance of an InvalidDestinationError with the specified message. | InvalidDestinationError
|  | toString():String Returns the string "[MessagingError]" by default, and includes the message property if defined. | MessagingError

Constructor Detail

InvalidDestinationError | () | Constructor

`public function InvalidDestinationError(msg:String)`

Language Version : | ActionScript 3.0

Product Versions : | BlazeDS 4, LCDS 3

Runtime Versions : | Flash Player 9, AIR 1.1

Constructs a new instance of an InvalidDestinationError with the specified message.

Parameters

| `msg:String` — String that contains the message that describes this InvalidDestinationError.

Sun Mar 5 2017, 03:42 PM +11:00