| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
1 parent 9a192a9 commit 132425a
1 file changed
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -449,13 +449,15 @@ added properties. | |||
| 449 | 449 | ### Class: System Error | |
| 450 | 450 | ||
| 451 | 451 | #### error.code | |
| 452 | - #### error.errno | ||
| 453 | 452 | ||
| 454 | 453 | Returns a string representing the error code, which is always `E` followed by | |
| 455 | 454 | a sequence of capital letters, and may be referenced in `man 2 intro`. | |
| 456 | 455 | ||
| 457 | - The properties `error.code` and `error.errno` are aliases of one another and | ||
| 458 | - return the same value. | ||
| 456 | + #### error.errno | ||
| 457 | + | ||
| 458 | + Returns a number corresponding to the **negated** error code, which may be | ||
| 459 | + referenced in `man 2 intro`. For example, an `ENOENT` error has an `errno` of | ||
| 460 | + `-2` because the error code for `ENOENT` is `2`. | ||
| 459 | 461 | ||
| 460 | 462 | #### error.syscall | |
| 461 | 463 | ||
| Back | FazBrowse Home | New Git URL |
0 commit comments