Lines Matching refs:error
178 workaround is also enabled on error, for example if getting the locale
201 goto error;
212 goto error;
217 goto error;
291 error:
292 /* if an error occurred, force the ASCII encoding */
364 *reason = "encoding error";
424 *reason = "decoding error";
526 /* Decoding error. Escape as UTF-8b, and start over in the initial
554 *reason = "decoding error";
568 Use the strict error handler if 'surrogateescape' is zero. Use the
569 surrogateescape error handler if 'surrogateescape' is non-zero: undecodable
572 surrogateescape error handler instead of decoding them.
580 On decoding error, return -2. If wlen is not NULL, write the start of
582 write the decoding error message into *reason.
584 Return -3 if the error handler 'errors' is not supported.
632 surrogateescape error handler: undecodable bytes are decoded as characters
634 character, escape the bytes using the surrogateescape error handler instead
641 Return NULL on decoding error or memory allocation error. If *size* is not
642 NULL, *size is set to (size_t)-1 on memory error or set to (size_t)-2 on
643 decoding error.
756 *reason = "encoding error";
770 * errors: error handler like "strict" or "surrogateescape".
776 -2: encoding error, set *error_pos and *reason (if set).
777 -3: the error handler 'errors' is not supported.
841 surrogateescape error handler: surrogate characters in the range
845 the memory. Return NULL on encoding or memory allocation error.
848 to the index of the invalid character on encoding error.
1004 allocation error. */
1022 or memory allocation error. */
1063 #error Unsupported C library
1118 On Windows, set the last Windows error and return nonzero on error. On
1119 POSIX, set errno and return nonzero on error. Fill status and return 0 on
1133 the Win32 error for callers who expect that */
1141 DWORD error = GetLastError();
1142 if (error != 0) {
1143 errno = winerror_to_errno(error);
1158 /* The Win32 error is already set, but we also set errno for
1182 Raise an exception and return -1 on error. On Windows, set the last Windows
1183 error on error. On POSIX, set errno on error. Fill status and return 0 on
1238 Return 0 on success, -1 on _wstat() / stat() error, -2 if an exception was
1319 raise an exception and return -1 on error. */
1463 Return 0 on success, set errno and return -1 on error. */
1471 On success: return 0, on error: raise an exception and return -1.
1492 /* Same as _Py_set_inheritable() but on error, set errno and
1564 error.
1581 Return a file descriptor on success. Set errno and return -1 on error.
1637 on error.
1738 On error, raise an exception, set errno and return -1.
1806 /* Issue #11395: the Windows console returns an error (12: not
1807 enough space error) on writing into stdout if stdout mode is
1877 including 0. On error, raise an exception, set errno and return -1.
1900 * including 0. On error, set errno and return -1.
1915 Return -1 on encoding error, on readlink() error, if the internal buffer is
1916 too short, on decoding error, or if 'buf' is too short. */
1964 Return NULL on encoding error, realpath() error, decoding error
2028 On error (ex: fail to get the current directory), return -1.
2324 Return NULL on getcwd() error, on decoding error, or if 'buf' is
2355 exception and return -1 on error.
2427 raise an exception and return -1 on error. */
2448 Return 0 on success, raise an exception and return -1 on error. */
2457 goto error;
2476 goto error;
2480 error:
2650 * Possible reasons of an error return are lack of kernel support
2652 * Fallback to other methods in case of any error. */