Lines Matching full:error
62 GError **error);
72 GError **error);
81 GError **error);
89 GError **error);
151 * @error: location to store the error occuring, or %NULL to ignore
157 * larger than %G_MAXSSIZE will cause a %G_IO_ERROR_INVALID_ARGUMENT error.
160 * It is not an error if this is not the same as the requested size, as it
166 * was cancelled, the error G_IO_ERROR_CANCELLED will be returned. If an
168 * partial result will be returned, without an error.
170 * On error -1 is returned and @error is set accordingly.
172 * Return value: Number of bytes read, or -1 on error
179 GError **error)
192 g_set_error (error, G_IO_ERROR, G_IO_ERROR_INVALID_ARGUMENT,
201 g_set_error_literal (error, G_IO_ERROR, G_IO_ERROR_NOT_SUPPORTED,
206 if (!g_input_stream_set_pending (stream, error))
212 res = class->read_fn (stream, buffer, count, cancellable, error);
229 * @error: location to store the error occuring, or %NULL to ignore
235 * read as many bytes as requested, only stopping on an error or end of stream.
241 * If there is an error during the operation %FALSE is returned and @error
242 * is set to indicate the error status, @bytes_read is updated to contain
243 * the number of bytes read into @buffer before the error occurred.
245 * Return value: %TRUE on success, %FALSE if there was an error
253 GError **error)
265 cancellable, error);
289 * @error: location to store the error occuring, or %NULL to ignore
302 * was cancelled, the error %G_IO_ERROR_CANCELLED will be returned. If an
304 * partial result will be returned, without an error.
306 * Return value: Number of bytes skipped, or -1 on error
312 GError **error)
324 g_set_error (error, G_IO_ERROR, G_IO_ERROR_INVALID_ARGUMENT,
331 if (!g_input_stream_set_pending (stream, error))
337 res = class->skip (stream, count, cancellable, error);
351 GError **error)
391 g_propagate_error (error, my_error);
407 * @error: location to store the error occuring, or %NULL to ignore
412 * Closing a stream multiple times will not return an error.
422 * On failure the first error that happened will be reported, but the close
425 * is important to check and report the error to the user.
429 * was cancelled, the error %G_IO_ERROR_CANCELLED will be returned.
438 GError **error)
452 if (!g_input_stream_set_pending (stream, error))
459 res = class->close_fn (stream, cancellable, error);
517 * A value of @count larger than %G_MAXSSIZE will cause a %G_IO_ERROR_INVALID_ARGUMENT error.
520 * callback. It is not an error if this is not the same as the requested size, as it
544 GError *error = NULL;
571 if (!g_input_stream_set_pending (stream, &error))
576 error);
577 g_error_free (error);
592 * @error: a #GError location to store the error occuring, or %NULL to
597 * Returns: number of bytes read in, or -1 on error.
602 GError **error)
613 if (g_simple_async_result_propagate_error (simple, error))
622 return class->read_finish (stream, result, error);
643 * A value of @count larger than %G_MAXSSIZE will cause a %G_IO_ERROR_INVALID_ARGUMENT error.
646 * callback. It is not an error if this is not the same as the requested size, as it
669 GError *error = NULL;
696 if (!g_input_stream_set_pending (stream, &error))
701 error);
702 g_error_free (error);
717 * @error: a #GError location to store the error occuring, or %NULL to
722 * Returns: the size of the bytes skipped, or %-1 on error.
727 GError **error)
738 if (g_simple_async_result_propagate_error (simple, error))
747 return class->skip_finish (stream, result, error);
779 GError *error = NULL;
795 if (!g_input_stream_set_pending (stream, &error))
800 error);
801 g_error_free (error);
816 * @error: a #GError location to store the error occuring, or %NULL to
826 GError **error)
837 if (g_simple_async_result_propagate_error (simple, error))
846 return class->close_finish (stream, result, error);
884 * @error: a #GError location to store the error occuring, or %NULL to
889 * @error.
894 g_input_stream_set_pending (GInputStream *stream, GError **error)
900 g_set_error_literal (error, G_IO_ERROR, G_IO_ERROR_CLOSED,
907 g_set_error_literal (error, G_IO_ERROR, G_IO_ERROR_PENDING,
908 /* Translators: This is an error you get if there is already an
950 GError *error = NULL;
958 cancellable, &error);
961 g_simple_async_result_set_from_error (res, error);
962 g_error_free (error);
991 GError **error)
1017 GError *error = NULL;
1023 cancellable, &error);
1026 g_simple_async_result_set_from_error (res, error);
1027 g_error_free (error);
1050 GError *error = NULL;
1053 ret = g_input_stream_read_finish (G_INPUT_STREAM (source_object), res, &error);
1080 error->domain == G_IO_ERROR &&
1081 error->code == G_IO_ERROR_CANCELLED)
1082 { /* No error, return partial read */ }
1084 g_simple_async_result_set_from_error (simple, error);
1085 g_error_free (error);
1148 GError **error)
1164 GError *error = NULL;
1173 result = class->close_fn (G_INPUT_STREAM (object), cancellable, &error);
1176 g_simple_async_result_set_from_error (res, error);
1177 g_error_free (error);
1207 GError **error)