mxlib
c++ tools for analyzing astronomical data and other tasks by Jared R. Males. [git repo]
|
The mxlib error codes and utility functions.
Functions | |
static constexpr const char * | mx::errorName (const error_t &errc) |
Convert an error_t code to its name. | |
static constexpr const char * | mx::errorMessage (const error_t &errc) |
Get the descriptive message for an error_t code. | |
static constexpr error_t | mx::errno2error_t (const int &err) |
Convert an errno code to error_t. | |
|
strong |
The mxlib error codes.
Definition at line 19 of file error_t.hpp.
|
staticconstexpr |
Convert an errno code to error_t.
[in] | err | the errno code to convert |
Definition at line 614 of file error_t.hpp.
References mx::eacces, mx::eaddrinuse, mx::eaddrnotavail, mx::eafnosupport, mx::eagain, mx::ealready, mx::ebadf, mx::ebadmsg, mx::ebusy, mx::ecanceled, mx::echild, mx::econnaborted, mx::econnrefused, mx::econnreset, mx::edestaddrreq, mx::edom, mx::eexist, mx::efault, mx::efbig, mx::ehostunreach, mx::eidrm, mx::eilseq, mx::einprogress, mx::eintr, mx::einval, mx::eio, mx::eisconn, mx::eisdir, mx::eloop, mx::emfile, mx::emlink, mx::emsgsize, mx::enametoolong, mx::enetdown, mx::enetreset, mx::enetunreach, mx::enfile, mx::enobufs, mx::enodata, mx::enodev, mx::enoent, mx::enoexec, mx::enolck, mx::enolink, mx::enomem, mx::enomsg, mx::enoprotoopt, mx::enospc, mx::enosr, mx::enostr, mx::enosys, mx::enotconn, mx::enotdir, mx::enotempty, mx::enotrecoverable, mx::enotsock, mx::enotsup, mx::enotty, mx::enxio, mx::eoverflow, mx::eownerdead, mx::eperm, mx::epipe, mx::eproto, mx::eprotonosupport, mx::eprototype, mx::erange, mx::erofs, mx::error, mx::espipe, mx::esrch, mx::etime, mx::etimedout, mx::etxtbsy, and mx::exdev.
Referenced by mx::ioutils::readColumns().
|
staticconstexpr |
Get the descriptive message for an error_t code.
[in] | errc | the error code for which to get the message |
Definition at line 377 of file error_t.hpp.
References mx::allocerr, mx::dirempty, mx::dirnotfound, mx::e2big, mx::eacces, mx::eaddrinuse, mx::eaddrnotavail, mx::eafnosupport, mx::eagain, mx::ealready, mx::ebadf, mx::ebadmsg, mx::ebusy, mx::ecanceled, mx::echild, mx::econnaborted, mx::econnrefused, mx::econnreset, mx::edestaddrreq, mx::edom, mx::eexist, mx::efault, mx::efbig, mx::ehostunreach, mx::eidrm, mx::eilseq, mx::einprogress, mx::eintr, mx::einval, mx::eio, mx::eisconn, mx::eisdir, mx::eloop, mx::emfile, mx::emlink, mx::emsgsize, mx::enametoolong, mx::enetdown, mx::enetreset, mx::enetunreach, mx::enfile, mx::enobufs, mx::enodata, mx::enodev, mx::enoent, mx::enoexec, mx::enolck, mx::enolink, mx::enomem, mx::enomsg, mx::enoprotoopt, mx::enospc, mx::enosr, mx::enostr, mx::enosys, mx::enotconn, mx::enotdir, mx::enotempty, mx::enotrecoverable, mx::enotsock, mx::enotsup, mx::enotty, mx::envnotset, mx::enxio, mx::eopnotsupp, mx::eoverflow, mx::eownerdead, mx::eperm, mx::epipe, mx::eproto, mx::eprotonosupport, mx::eprototype, mx::erange, mx::erofs, mx::error, mx::espipe, mx::esrch, mx::etime, mx::etimedout, mx::etxtbsy, mx::ewouldblock, mx::exception, mx::exdev, mx::filecerr, mx::fileempty, mx::filenotfound, mx::fileoerr, mx::filererr, mx::filesystem, mx::filewerr, mx::freeerr, mx::gnuploterr, mx::invalidarg, mx::invalidconfig, mx::lapackerr, mx::liberr, mx::noerror, mx::notfound, mx::notimpl, mx::paramnotset, mx::parseerr, mx::procerr, mx::sizeerr, mx::std_bad_optional_access, mx::std_domain_error, mx::std_future_error, mx::std_invalid_argument, mx::std_length_error, mx::std_logic_error, mx::std_out_of_range, and mx::timeout.
Referenced by mx::error_message< verbose::vvv >(), mx::error_message< verbose::vvv >(), mx::internal::mxlib_error_message< verbose::vv >(), mx::internal::mxlib_error_message< verbose::vv >(), mx::internal::mxlib_error_message< verbose::vvv >(), and mx::internal::mxlib_error_message< verbose::vvv >().
|
staticconstexpr |
Convert an error_t code to its name.
[in] | errc | the error code to convert |
Definition at line 140 of file error_t.hpp.
References mx::allocerr, mx::dirempty, mx::dirnotfound, mx::e2big, mx::eacces, mx::eaddrinuse, mx::eaddrnotavail, mx::eafnosupport, mx::eagain, mx::ealready, mx::ebadf, mx::ebadmsg, mx::ebusy, mx::ecanceled, mx::echild, mx::econnaborted, mx::econnrefused, mx::econnreset, mx::edestaddrreq, mx::edom, mx::eexist, mx::efault, mx::efbig, mx::ehostunreach, mx::eidrm, mx::eilseq, mx::einprogress, mx::eintr, mx::einval, mx::eio, mx::eisconn, mx::eisdir, mx::eloop, mx::emfile, mx::emlink, mx::emsgsize, mx::enametoolong, mx::enetdown, mx::enetreset, mx::enetunreach, mx::enfile, mx::enobufs, mx::enodata, mx::enodev, mx::enoent, mx::enoexec, mx::enolck, mx::enolink, mx::enomem, mx::enomsg, mx::enoprotoopt, mx::enospc, mx::enosr, mx::enostr, mx::enosys, mx::enotconn, mx::enotdir, mx::enotempty, mx::enotrecoverable, mx::enotsock, mx::enotsup, mx::enotty, mx::envnotset, mx::enxio, mx::eopnotsupp, mx::eoverflow, mx::eownerdead, mx::eperm, mx::epipe, mx::eproto, mx::eprotonosupport, mx::eprototype, mx::erange, mx::erofs, mx::error, mx::espipe, mx::esrch, mx::etime, mx::etimedout, mx::etxtbsy, mx::ewouldblock, mx::exception, mx::exdev, mx::filecerr, mx::fileempty, mx::filenotfound, mx::fileoerr, mx::filererr, mx::filesystem, mx::filewerr, mx::freeerr, mx::gnuploterr, mx::invalidarg, mx::invalidconfig, mx::lapackerr, mx::liberr, mx::noerror, mx::notfound, mx::notimpl, mx::paramnotset, mx::parseerr, mx::procerr, mx::sizeerr, mx::std_bad_optional_access, mx::std_domain_error, mx::std_future_error, mx::std_invalid_argument, mx::std_length_error, mx::std_logic_error, mx::std_out_of_range, and mx::timeout.
Referenced by mx::error_message< verbose::vvv >(), mx::error_message< verbose::vvv >(), mx::internal::mxlib_error_message< verbose::v >(), mx::internal::mxlib_error_message< verbose::v >(), mx::internal::mxlib_error_message< verbose::vv >(), mx::internal::mxlib_error_message< verbose::vv >(), mx::internal::mxlib_error_message< verbose::vvv >(), and mx::internal::mxlib_error_message< verbose::vvv >().