org.glite.rgma
Class RGMAException

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by org.glite.rgma.RGMAException
All Implemented Interfaces:
java.io.Serializable
Direct Known Subclasses:
RGMABufferFullException, RGMABusyException, RGMANoWorkingReplicasException, RGMASecurityException, RGMAUserException

public class RGMAException
extends java.lang.Exception

Exception thrown when an error occurs in the RGMA application.

See Also:
Serialized Form

Field Summary
static int RGMA_BUFFER_FULL_EXCEPTION
          Error code for R-GMA buffer full exception.
static int RGMA_BUSY_EXCEPTION
          Error code for R-GMA busy exception.
static int RGMA_EXCEPTION
          Error code for generic R-GMA exception.
static int RGMA_NO_WORKING_REPLICAS_EXCEPTION
          Error code for R-GMA no working replicas exception.
static int RGMA_SECURITY_EXCEPTION
          Error code for R-GMA security exception.
static int RGMA_USER_EXCEPTION
          Error code for R-GMA user exception.
 
Constructor Summary
RGMAException(int errNo)
          Creates a new RGMAException object.
RGMAException(int errNo, java.lang.String message)
          Creates a new RGMAException object.
RGMAException(int errNo, java.lang.String message, java.lang.Throwable cause)
          Creates a new RGMAException object.
 
Method Summary
 java.lang.Throwable getCause()
          Returns the root cause of this exception.
 int getErrorNumber()
          Gets the error number associated with this exception.
 java.lang.String getMessage()
          Returns the error message.
 int getNumSuccessfulOps()
          Returns the number of successful operations (for batch commands).
 void setNumSuccessfulOps(int numSuccessfulOps)
          Sets the number of successful operations (for batch commands).
 
Methods inherited from class java.lang.Throwable
fillInStackTrace, getLocalizedMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

RGMA_EXCEPTION

public static final int RGMA_EXCEPTION
Error code for generic R-GMA exception.

See Also:
Constant Field Values

RGMA_SECURITY_EXCEPTION

public static final int RGMA_SECURITY_EXCEPTION
Error code for R-GMA security exception.

See Also:
Constant Field Values

RGMA_USER_EXCEPTION

public static final int RGMA_USER_EXCEPTION
Error code for R-GMA user exception.

See Also:
Constant Field Values

RGMA_BUFFER_FULL_EXCEPTION

public static final int RGMA_BUFFER_FULL_EXCEPTION
Error code for R-GMA buffer full exception.

See Also:
Constant Field Values

RGMA_NO_WORKING_REPLICAS_EXCEPTION

public static final int RGMA_NO_WORKING_REPLICAS_EXCEPTION
Error code for R-GMA no working replicas exception.

See Also:
Constant Field Values

RGMA_BUSY_EXCEPTION

public static final int RGMA_BUSY_EXCEPTION
Error code for R-GMA busy exception.

See Also:
Constant Field Values
Constructor Detail

RGMAException

public RGMAException(int errNo,
                     java.lang.String message,
                     java.lang.Throwable cause)
Creates a new RGMAException object.

Parameters:
errNo - Error number.
message - Error message.
cause - Root cause.

RGMAException

public RGMAException(int errNo,
                     java.lang.String message)
Creates a new RGMAException object.

Parameters:
errNo - Error number.
message - Error message.

RGMAException

public RGMAException(int errNo)
Creates a new RGMAException object.

Parameters:
errNo - Error number.
Method Detail

getErrorNumber

public int getErrorNumber()
Gets the error number associated with this exception.

Returns:
An error number.

getCause

public java.lang.Throwable getCause()
Returns the root cause of this exception.

Overrides:
getCause in class java.lang.Throwable
Returns:
Returns the cause.

getMessage

public java.lang.String getMessage()
Returns the error message.

Overrides:
getMessage in class java.lang.Throwable
Returns:
Returns the errMsg.

getNumSuccessfulOps

public int getNumSuccessfulOps()
Returns the number of successful operations (for batch commands).

Returns:
The number of successful operations (for batch commands).

setNumSuccessfulOps

public void setNumSuccessfulOps(int numSuccessfulOps)
Sets the number of successful operations (for batch commands).

Parameters:
numSuccessfulOps - Number of successful operations (for batch commands).