File: GError.Rd

package info (click to toggle)
rgtk2 2.20.36-2
  • links: PTS, VCS
  • area: main
  • in suites: bullseye
  • size: 33,540 kB
  • sloc: ansic: 137,163; makefile: 2; sh: 1
file content (43 lines) | stat: -rw-r--r-- 1,478 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
\name{GError}
\alias{GError}
\alias{GFileError}
\alias{GDK_PIXBUF_ERROR}
\alias{GTK_FILE_CHOOSER_ERROR}
\alias{GTK_ICON_THEME_ERROR}
\alias{G_FILE_ERROR}
\alias{gFileErrorQuark}
\alias{gdkPixbufErrorQuark}
\alias{gtkIconThemeErrorQuark}
\alias{gtkPrintErrorQuark}
\alias{gtkRecentChooserErrorQuark}
\alias{gtkRecentManagerErrorQuark}
\alias{gtkBuilderErrorQuark}
\alias{gIoErrorQuark}
\alias{gResolverErrorQuark}
\title{The GError object}
\description{
GLib provides a standard method of reporting errors from a called function to the calling code. 
(This is the same problem solved by exceptions in other languages.)
}
\details{
As a \link{transparent-type}, a \code{GError} is returned to the user as a list 
with the following elements:
\describe{
\item{domain}{a numeric vector with one named element that identifies the error domain}
\item{code}{an integer code (often an enum value) identifying the specific error type within the domain}
\item{message}{a descriptive error message}
}
The domain is usually retrived via a function of the form NAME\_OF\_DOMAIN\_ERROR().
For example, for \code{\link{GdkPixbuf}}, the error domain is provided by \code{GDK_PIXBUF_ERROR()}.
}
\seealso{
\code{\link{GdkPixbufError}}
\code{\link{GtkFileChooserError}}
\code{\link{GtkPrintError}}
\code{\link{GtkRecentChooserError}}
\code{\link{GtkRecentManagerError}}
}
\references{\url{https://developer.gnome.org/glib/stable/glib-Error-Reporting.html}}
\keyword{interface}
\keyword{internal}