rahul.kolhe22
1st June 2011, 09:46
Hi friends,

I am in a search of a function which can return me the appropriate error message on sending it the error code in variable e, if functions seq.open, seq.write, ... fails.

For eg, 13 = Permission denied,
28 = No space left on device
and so on

I think there should be some function which serves this purpose.


Thanks and Regards,
--Rahul

mark_h
1st June 2011, 15:39
I am not aware of any funtion that does this. Now that does not mean there is not one, but I have not heard of one. I think we only check for like 2 or 3 errors and never really saw a reason to delve into it more. Maybe someone else knows a function I have not heard of?

rahul.kolhe22
2nd June 2011, 07:21
Hi,

Thanks a lot Mark for your reply.

Yes, its true that we don't check for all the return values, only handle 2-3 of them. But just thought if there is some generic function which can give us the error message for specified return value on error.

I also had one more question, what is the purpose of function seq.error/seq.clearerr. I referred programers guide, but cant get the actual use of it.

Anyways from the return value of seq.open, seq.read, seq.write, ... we can know whether there is any error while performing the respective operation. :confused:

Can anyone please help me out to know actual use for the seq.error and seq.clearerr function.

Also am waiting if anyone can share the generic function which returns error message on passing error code returned on using seq.open, seq.puts,... functions to it like 13(Permission denied), 28(No space left on device), ...

Thanks and Regards,
--Rahul

schreddermaus
24th August 2011, 12:29
Hi,

I found some technical information in BaanIV.

There you can find some of the error codes.

rahul.kolhe22
26th August 2011, 08:46
Hi,

Thanks a lot for sharing the information.

We can also find the description for all these error codes in LN programmers guide, go to the
"Content" tab --> "The Infor ERP LN Enterprise Server error message" --> "Operating system errors"
and there you can find all the description for all error codes.

Basically my question is: Is there any function which returns error message on passing it error code returned on opening a file or doing any file operations?

Anyways thanks again for your information.

Thanks and Regards,
--Rahul

ulrich.fuchs
26th August 2011, 08:54
As far as I know those codes are operating system dependent, so there is no "standard" way of parsing them.

Short googling brought this one up, perhaps it helps:

http://aplawrence.com/Unixart/errors.html

best regards
Uli