static function GenerateErrorParameter()
    {
        $ErrBytes   = 144;
        $ErrBytesAv = 144;
        $ErrCPF     = '0000000';
        $ErrRes     = ' ';
        $ErrEx      = ' ';
        // changed $this to self so can work in static context
        $ds[] = self::AddParameterInt32('in', "Bytes provided", 'errbytes', $ErrBytes);
        $ds[] = self::AddParameterInt32('out', "Bytes available",'err_bytes_avail', $ErrBytesAv);
        $ds[] = self::AddParameterChar('out',7, "Exception ID", 'exceptId', $ErrCPF);
        $ds[] = self::AddParameterChar('out',1, "Reserved", 'reserved', $ErrRes);
        $ds[] = self::AddParameterHole('out',128, "Exception data", 'excData', $ErrEx); // can be bad XML so make it a hole
        return $ds;
    }
static function GenerateErrorParameter()
    {
        $ErrBytes   = 144;
        $ErrBytesAv = 144;
        $ErrCPF     = '0000000';
        $ErrRes     = ' ';
        $ErrEx      = ' ';
        // changed $this to self so can work in static context
        $ds[] = self::AddParameterInt32('in', "Bytes provided", 'errbytes', $ErrBytes);
        $ds[] = self::AddParameterInt32('out', "Bytes available",'err_bytes_avail', $ErrBytesAv);
        $ds[] = self::AddParameterChar('out',7, "Exception ID", 'exceptId', $ErrCPF);
        $ds[] = self::AddParameterChar('out',1, "Reserved", 'reserved', $ErrRes);
        $ds[] = self::AddParameterHole('out',128, "Exception data", 'excData', $ErrEx); // can be bad XML so make it a hole
        return $ds;
    }
static function GenerateErrorParameter ( ) { $ ErrBytes = 144 ; $ ErrBytesAv = 144 ; $ ErrCPF = '0000000' ; $ ErrRes = ' ' ; $ ErrEx = ' ' ; // changed $this to self so can work in static context $ ds [ ] = self :: AddParameterInt32 ( 'in' , "Bytes provided" , 'errbytes' , $ ErrBytes ) ; $ ds [ ] = self :: AddParameterInt32 ( 'out' , "Bytes available" , 'err_bytes_avail' , $ ErrBytesAv ) ; $ ds [ ] = self :: AddParameterChar ( 'out' , 7 , "Exception ID" , 'exceptId' , $ ErrCPF ) ; $ ds [ ] = self :: AddParameterChar ( 'out' , 1 , "Reserved" , 'reserved' , $ ErrRes ) ; $ ds [ ] = self :: AddParameterHole ( 'out' , 128 , "Exception data" , 'excData' , $ ErrEx ) ; // can be bad XML so make it a hole return $ ds ; }
creates Data structure that going to be used in lot of
i5 API's for error handling

@return array
creates Data structure that going to be used in lot of i5 API s for error handling