org.gnu.glib
public class Error extends MemStruct
Deprecated: This class is part of the java-gnome 2.x family of libraries,
which, due to their inefficiency and complexity, are no longer
being maintained and have been abandoned by the java-gnome
project. This class may have an equivalent in java-gnome 4.0,
see org.gnome.glib.Error
.
You should be aware that there is a considerably different API
in the new library: the architecture is completely different
and most notably internals are no longer exposed to public view.
Constructor Summary | |
---|---|
Error(Quark domain, int code, String message)
Construct a new Error object. | |
Error(Handle handle) |
Method Summary | |
---|---|
protected static int | getCode(Handle obj) |
Quark | getDomain()
Return the domain for this error.
|
protected static int | getDomain(Handle obj) |
int | getErrorCode()
Return the error code associated with this error.
|
String | getErrorMessage()
Return the error message associated with this error.
|
protected static String | getMessage(Handle obj) |
protected static Handle | g_error_new_literal(int domain, int code, String message) |
Deprecated: Superceeded by java-gnome 4.0; a method along these lines may well exist in the new bindings, but if it does it likely has a different name or signature due to the shift to an algorithmic mapping of the underlying native libraries.
Construct a new Error object. This object is used to retrieve errors from the native layer. The java-gnome library will rarely return an object of this type. It will convert it into an exception that will be thrown to the application layer.Deprecated: Superceeded by java-gnome 4.0; a method along these lines may well exist in the new bindings, but if it does it likely has a different name or signature due to the shift to an algorithmic mapping of the underlying native libraries.
Return the domain for this error.Returns: The Quark object that represents the domain for this error.
Deprecated: Superceeded by java-gnome 4.0; a method along these lines may well exist in the new bindings, but if it does it likely has a different name or signature due to the shift to an algorithmic mapping of the underlying native libraries.
Return the error code associated with this error.Returns: The error code for this error.
Deprecated: Superceeded by java-gnome 4.0; a method along these lines may well exist in the new bindings, but if it does it likely has a different name or signature due to the shift to an algorithmic mapping of the underlying native libraries.
Return the error message associated with this error.Returns: The error message for this error.