diff options
author | Samuel Williams <samuel.williams@oriontransfer.co.nz> | 2021-12-20 09:59:45 +1300 |
---|---|---|
committer | Samuel Williams <samuel.williams@oriontransfer.co.nz> | 2021-12-21 12:25:42 +1300 |
commit | 49166fc74a9cd0bf48baa08d32e020183ad46723 (patch) | |
tree | 204d42f388ec2a0a0301b1696d7d9ccb6b8ba486 /include | |
parent | 71bf5cef75b9d244a06261c9fc0b84fbe5a1592f (diff) |
Improved exception usage/classes.
Notes
Notes:
Merged: https://github.com/ruby/ruby/pull/5303
Diffstat (limited to 'include')
-rw-r--r-- | include/ruby/internal/intern/file.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/include/ruby/internal/intern/file.h b/include/ruby/internal/intern/file.h index 7a6af99872..2dc60c7ba7 100644 --- a/include/ruby/internal/intern/file.h +++ b/include/ruby/internal/intern/file.h @@ -198,6 +198,8 @@ int rb_is_absolute_path(const char *path); * @exception rb_eFrozenError `file` is frozen. * @exception rb_eIOError `file` is closed. * @exception rb_eSystemCallError Permission denied etc. + * @exception rb_eNoMethodError The given non-file object doesn't respond + * to `#size`. * @return The size of the passed file. * @note Passing a non-regular file such as a UNIX domain socket to this * function is not a failure. But the return value is |