MethodInvocationErrorInfo
| Kind of class: | class |
|---|---|
| Inherits from: | BasicClass |
| Author: | Simon Wacker |
| Classpath: | org.as2lib.io.conn.core.event.MethodInvocationErrorInfo |
| File last modified: | Friday, 06 May 2005, 12:12:36 |
MethodInvocationErrorInfo informs the client of an error that occured ona method invocation.
It defines constants, that can be used to identify what kind of error occured.
This class is used in conjunction with the MethodInvocationCallback
and MethodInvocationErrorListener classes.
Summary
Constructor
MethodInvocationErrorInfo
function MethodInvocationErrorInfo (
serviceUrl:String,
methodName:String,
methodArguments:Array,
errorCode:Number,
exception)
Constructs a new
MethodInvocationErrorInfo instance.If errorCode is null or undefined, UNKNOWN_ERROR
is used.
Parameters:
serviceUrl :
the url to the service the method should be or was invoked on
methodName :
the name of the method that should be or was invoked on the service
methodArguments:
the arguments used as parameters for the method invocation
error :
a number indicating the type of the error
exception :
the exception that caused the error
Class properties
METHOD_EXCEPTION_ERROR
static METHOD_EXCEPTION_ERROR:Number = 4
(read,write)
Indicates that the service method to invoke threw an exception.
OVERSIZED_ARGUMENTS_ERROR
static OVERSIZED_ARGUMENTS_ERROR:Number = 3
(read,write)
Indicates an error caused by arguments that are out of size.
UNKNOWN_ERROR
static UNKNOWN_ERROR:Number = 0
(read,write)
Indicates an error of unknown origin.
UNKNOWN_METHOD_ERROR
static UNKNOWN_METHOD_ERROR:Number = 2
(read,write)
Indicates that the method to invoke does not exist.
UNKNOWN_SERVICE_ERROR
static UNKNOWN_SERVICE_ERROR:Number = 1
(read,write)
Indicates an error caused because of a not existing service.
Instance methods
getErrorCode
function getErrorCode (
Void) : Number
Returns the error code that describes this error.
The error code matches one of the declared error constants.
Returns:
the error code that describes the type of this error
getException
function getException (
Void)
Returns the exception that caused this error.
Note that this error is not always caused by an exception. This method may
does also return null.
Returns:
the exception that caused this error or
nullgetMethodArguments
function getMethodArguments (
Void) : Array
Returns the arguments used as parameters for the method invocaton
that caused this error.
that caused this error.
Returns:
the arguments used as parameters for the method invocation
getMethodName
function getMethodName (
Void) : String
Returns the name of the method that caused this error.
Returns:
the name of the method that should be or was invoked on the service
getServiceUrl
function getServiceUrl (
Void) : String
Returns the url to the service the method should be or was invoked on.
Returns:
the url to the service the method should be or was invoked on