Unix::S...details(3)
π NAME π
ok so bestie, <pink>Unix::Statgrab::sg_error_details</pink> is a Perl package name and it's literally giving you accessors to the libstatgrab sg_error_details error status. that's the whole vibe. this page lives in section 3 of the manual, iykyk π
β¨ DESCRIPTION β¨
Unix::Statgrab::sg_error_details is a Perl package name, and what it does is hand you accessors to the sg_error_details error status from libstatgrab. the docs for that live over at http://www.i-scream.org/libstatgrab/docs/sg_set_error.3.html π¦
like, it's the package that tells you what went wrong when something went wrong. very main character energy for an error handler, honestly. π
π METHODS π
error
error code of the error that happened. it is very likely one of the named constants listed down below, so go peek at those π
error_name
human readable name of the error code. so instead of a cryptic number you get something a person can actually read. slay. β¨
errno_value
the internal error code. yeah, the one underneath. πΈ
error_arg
error information. that's the extra deets riding along with the error. π
strperror
returns a complete error message built from all of the above info. all of it, combined, one gorgeous string. periodt. π
π CONSTANTS π
here's the full roster, no cap, every single one of them:
SG_ERROR_NONE SG_ERROR_INVALID_ARGUMENT SG_ERROR_ASPRINTF
SG_ERROR_SPRINTF SG_ERROR_DEVICES SG_ERROR_DEVSTAT_GETDEVS
SG_ERROR_DEVSTAT_SELECTDEVS SG_ERROR_DISKINFO SG_ERROR_ENOENT
SG_ERROR_GETIFADDRS SG_ERROR_GETMNTINFO SG_ERROR_GETPAGESIZE
SG_ERROR_HOST SG_ERROR_KSTAT_DATA_LOOKUP SG_ERROR_KSTAT_LOOKUP
SG_ERROR_KSTAT_OPEN SG_ERROR_KSTAT_READ SG_ERROR_KVM_GETSWAPINFO
SG_ERROR_KVM_OPENFILES SG_ERROR_MALLOC SG_ERROR_MEMSTATUS
SG_ERROR_OPEN SG_ERROR_OPENDIR SG_ERROR_READDIR SG_ERROR_PARSE
SG_ERROR_PDHADD SG_ERROR_PDHCOLLECT SG_ERROR_PDHOPEN SG_ERROR_PDHREAD
SG_ERROR_PERMISSION SG_ERROR_PSTAT SG_ERROR_SETEGID SG_ERROR_SETEUID
SG_ERROR_SETMNTENT SG_ERROR_SOCKET SG_ERROR_SWAPCTL SG_ERROR_SYSCONF
SG_ERROR_SYSCTL SG_ERROR_SYSCTLBYNAME SG_ERROR_SYSCTLNAMETOMIB
SG_ERROR_SYSINFO SG_ERROR_MACHCALL SG_ERROR_IOKIT SG_ERROR_UNAME
SG_ERROR_UNSUPPORTED SG_ERROR_XSW_VER_MISMATCH SG_ERROR_GETMSG
SG_ERROR_PUTMSG SG_ERROR_INITIALISATION SG_ERROR_MUTEX_LOCK
SG_ERROR_MUTEX_UNLOCK
that's the list. all of them. yes, even SG_ERROR_MUTEX_UNLOCK. we don't skip. π
π AUTHOR π
Jens Rehsack, <rehsack AT cpan.org> β iconic, we love them π«Ά
π COPYRIGHT AND LICENSE π
Copyright (C) 2012-2018 by Jens Rehsack
This library is free software; you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation; either version 2.1 of the License, or (at your option) any later version.
okay that's the whole page bestie, go forth and handle your errors with grace π β¨
and that's a wrap! this was served up fresh by perl v5.42.0 on 2025-07-25, so if you're reading this from the future, hi, hope the perl is still perling πΈπ¦
π¦ where this page comes from
- fedora 43: perl-Unix-Statgrab 0.112-27.fc43 Β· (LGPL-2.1-or-later AND (GPL-1.0-or-later OR Artistic-1.0-Perl))
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms