org.gnu.glib
Class Error

java.lang.Object
  extended by org.gnu.glib.Struct
      extended by org.gnu.glib.MemStruct
          extended by org.gnu.glib.Error

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.

public class Error
extends MemStruct

The class represents an internal representation of an Error from the GTK and GNOME libraries. It should never be returned to the application layer. The Java-GNOME API should throw an exception that contains the relevant information contained within this object. This resource must be freed when you are finished with it via the free() method.


Constructor Summary
Error(Handle handle)
          Deprecated.  
Error(Quark domain, int code, java.lang.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.
 
Method Summary
protected static Handle g_error_new_literal(int domain, int code, java.lang.String message)
          Deprecated.  
protected static int getCode(Handle obj)
          Deprecated.  
 Quark getDomain()
          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.
protected static int getDomain(Handle obj)
          Deprecated.  
 int getErrorCode()
          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.
 java.lang.String getErrorMessage()
          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.
protected static java.lang.String getMessage(Handle obj)
          Deprecated.  
 
Methods inherited from class org.gnu.glib.MemStruct
finalize, getMemStructFromHandle
 
Methods inherited from class org.gnu.glib.Struct
equals, getHandle, getNullHandle, hashCode, setHandle
 
Methods inherited from class java.lang.Object
clone, getClass, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Error

public Error(Quark domain,
             int code,
             java.lang.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.


Error

public Error(Handle handle)
Deprecated. 
Method Detail

getDomain

public Quark getDomain()
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.

getErrorCode

public int getErrorCode()
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.

getErrorMessage

public java.lang.String getErrorMessage()
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.

getDomain

protected static final int getDomain(Handle obj)
Deprecated. 

getCode

protected static final int getCode(Handle obj)
Deprecated. 

getMessage

protected static final java.lang.String getMessage(Handle obj)
Deprecated. 

g_error_new_literal

protected static final Handle g_error_new_literal(int domain,
                                                  int code,
                                                  java.lang.String message)
Deprecated.