How to handle protocols and error

Posted August 11, 2021 103 views

I would like to know more about handling errors,what error code mean

These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.

Submit an Answer
1 answer

Hi @valanthoniomarie,

So error handling is basically when you have sitatuion where your script/service will fail and you won’t to know when that happens and log the error message. When logging the error message, you’ll know what actions to take in order to resolve the issue or the reason for the failed execution.

Now, error codes in Linux are used again when something fails to execute properly. Different error code is given based on where and what made the script failed. Every error code can mean something different and it is basically a good idea to Google them each time you experience them as they are so many I doubt anyone knows them by heart.