Error handling after a POSIX function has been called. Prepares a PosixError containing: a message, error description, and error code.