Error Codes - Adobe 65011817 - Fireworks CS4 - Mac Extended User Manual

Extending guide
Hide thumbs Also See for 65011817 - Fireworks CS4 - Mac:
Table of Contents

Advertisement

Last updated 12/8/2009
The
operation requires only one parameter, and the
set
RPC server XML replies
After the RPC server processes an XML request, it packages the result as an XML fragment and sends it back to the
client. If an error occurred during processing, the server returns an error code in the result XML. Otherwise, the reply
node contains a single data node with the result of the operation. If the request doesn't require a return value, the reply
node contains either a single void data node or no children nodes.
For example, here is a successful reply:
<return><string value="file://hd/foo/stuff/mydoc.png" /></return>
Here is a successful reply with a server object:
<return><obj value="23467" class="FireworksDocument" /></return>
Note: When the server returns a server object, it automatically retains the object on the client's behalf. That is, the object
returned to the client is not destroyed until the client releases it with a release request, or until the client disconnects from
the server. Therefore, the client should release a server object as soon as the client has finished sending requests related to
that object (when the client is done "using" the object).

Error codes

If the server encounters an error when processing a request, the reply node (with the node name
most one
attribute, as in this example:
error
<return error="5" />
The
attribute can contain one of the values listed in the following table.
error
Error code
Description
0
No error occurred, and the request completed successfully. The client should never receive an error attribute with this
value. If no error occurred, then no error attribute will be present.
1
An unknown, generic error occurred. The RPC server could not make enough sense of the request to give a specific error.
Check the name of the XML nodes and attributes.
2
No such object, invalid object ID. The object specified by the client does not exist or the object ID is invalid.
3
No such method. The method that the client requested does not exist on the specified object.
4
No such property. The property that the client requested does not exist on the specified object.
5
Read-only property. The
6
Wrong number of parameters. The request did not specify the correct number of parameters. Either more or fewer
parameters are needed.
7
Wrong parameter type. One or more of the parameters given is of the wrong type.
8
Security violation. The method is not allowed in RPC.
RPC and the Fireworks JavaScript DOM
The RPC server does not allow for self-discovery of the server classes and their methods. Instead the client must know
the methods and properties of a given class of objects beforehand. If the client is written in ActionScript or C++, then
the client can use the generated client stubs provided by Adobe. Client stubs generated by Adobe know about all
methods and properties of every class accessible through RPC. These stubs are available for download at the Adobe
website: www.adobe.com/go/fireworks_documentation.
func
set
request cannot be completed because the specified property is read only.
operation may have zero or more parameters.
285
EXTENDING FIREWORKS
Cross-Product Extensions
) contains at
return

Advertisement

Table of Contents
loading

This manual is also suitable for:

Fireworks cs4

Table of Contents