home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Mobiclic 136
/
MOBICLIC136.ISO
/
pc
/
DATA
/
HOTE
/
libs
/
amfphp
/
amfphp.swf
/
scripts
/
__Packages
/
mx
/
rpc
/
Fault.as
< prev
next >
Wrap
Text File
|
2011-07-20
|
1KB
|
54 lines
class mx.rpc.Fault extends Object
{
function Fault(code, msg, detail, type)
{
var _loc1_ = this;
super();
_loc1_.__faultcode = code;
_loc1_.__faultstring = msg;
_loc1_.__detail = detail;
_loc1_.__type = type;
}
function get faultcode()
{
return this.__faultcode;
}
function get faultstring()
{
return this.__faultstring;
}
function get detail()
{
return this.__detail;
}
function get description()
{
var _loc2_ = this;
if(_loc2_.__description == null)
{
if(_loc2_.__faultstring.indexOf(":") > -1)
{
_loc2_.__description = _loc2_.__faultstring.substring(_loc2_.__faultstring.indexOf(":") + 1);
var _loc1_ = 0;
while(_loc2_.__description.indexOf(" ",_loc1_) == _loc1_)
{
_loc1_ = _loc1_ + 1;
}
if(_loc1_ > 0)
{
_loc2_.__description = _loc2_.__description.substring(_loc1_);
}
}
else
{
_loc2_.__description = _loc2_.__faultstring;
}
}
return _loc2_.__description;
}
function get type()
{
return this.__type;
}
}