flex.messaging.io.amf.client.exceptions
Class ServerStatusException

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by flex.messaging.io.amf.client.exceptions.ServerStatusException
All Implemented Interfaces:
Serializable

public class ServerStatusException
extends Exception

Server status exceptions are thrown by the AMF connection when a server-side error is encountered.

See Also:
Serialized Form

Nested Class Summary
static class ServerStatusException.HttpResponseInfo
          An inner class to represent the HTTP response associated with the exception.
 
Constructor Summary
ServerStatusException(String message, Object data)
          Creates a server status exception with the supplied message and data.
ServerStatusException(String message, Object data, ServerStatusException.HttpResponseInfo httpResponseInfo)
          Creates a server status exception with the supplied message, data, and HTTP response info object.
 
Method Summary
 Object getData()
          Returns the data of the exception.
 ServerStatusException.HttpResponseInfo getHttpResponseInfo()
          Returns the HTTP response info of the exception.
 String toString()
          Returns a String representation of the exception.
 
Methods inherited from class java.lang.Throwable
fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

ServerStatusException

public ServerStatusException(String message,
                             Object data)
Creates a server status exception with the supplied message and data.

Parameters:
message - The message of the exception.
data - The data of the exception which is usually an AMF result or status message.

ServerStatusException

public ServerStatusException(String message,
                             Object data,
                             ServerStatusException.HttpResponseInfo httpResponseInfo)
Creates a server status exception with the supplied message, data, and HTTP response info object.

Parameters:
message - The message of the exception.
data - The data of the exception which is usually an AMF result or status message.
httpResponseInfo - The HTTP response info object that represents the HTTP response returned with the exception.
Method Detail

getData

public Object getData()
Returns the data of the exception.

Returns:
The data of the exception.

getHttpResponseInfo

public ServerStatusException.HttpResponseInfo getHttpResponseInfo()
Returns the HTTP response info of the exception.

Returns:
The HTTP response info of the exception.

toString

public String toString()
Returns a String representation of the exception.

Overrides:
toString in class Throwable
Returns:
A String that represents the exception.


Copyright © 2008 Adobe Systems Inc. All Rights Reserved.

 

Send me an e-mail when comments are added to this page | Comment Report

Current page: http://livedocs.adobe.com/blazeds/1/javadoc/flex/messaging/io/amf/client/exceptions/ServerStatusException.html