jGCS Documentation

net.sf.jgcs
Class JGCSException

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by java.io.IOException
              extended by net.sf.jgcs.JGCSException
All Implemented Interfaces:
java.io.Serializable
Direct Known Subclasses:
ClosedSessionException, DataSessionException, NotJoinedException, UnsupportedServiceException

public class JGCSException
extends java.io.IOException

This class defines a JGCSException.

Version:
1.0
Author:
Nuno Carvalho
See Also:
Serialized Form

Constructor Summary
JGCSException()
          Creates a new JGCSException.
JGCSException(java.lang.String s)
          Creates a new JGCSException.
JGCSException(java.lang.String s, int code)
          Creates a new JGCSException.
JGCSException(java.lang.String s, java.lang.Throwable cause)
          Creates a new JGCSException.
JGCSException(java.lang.String s, java.lang.Throwable cause, int code)
          Creates a new JGCSException.
 
Method Summary
 java.lang.Throwable getCause()
          Gets the throwable that caused this exception.
 int getErrorCode()
          Gets the error code that identifies the error ocurred.
 
Methods inherited from class java.lang.Throwable
fillInStackTrace, getLocalizedMessage, getMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

JGCSException

public JGCSException()
Creates a new JGCSException.


JGCSException

public JGCSException(java.lang.String s)
Creates a new JGCSException.

Parameters:
s - the error message.

JGCSException

public JGCSException(java.lang.String s,
                     java.lang.Throwable cause)
Creates a new JGCSException.

Parameters:
s - the error message.
cause - the throwable that caused this exception.

JGCSException

public JGCSException(java.lang.String s,
                     int code)
Creates a new JGCSException.

Parameters:
s - the error message.
code - the error code.

JGCSException

public JGCSException(java.lang.String s,
                     java.lang.Throwable cause,
                     int code)
Creates a new JGCSException.

Parameters:
s - the error message
cause - the throwable that caused this exception.
code - the error code
Method Detail

getCause

public java.lang.Throwable getCause()
Gets the throwable that caused this exception.

Overrides:
getCause in class java.lang.Throwable

getErrorCode

public int getErrorCode()
Gets the error code that identifies the error ocurred.

Returns:
the error code.

jGCS Documentation

Copyright (c) 2006, Universidade de Lisboa
For updates and related information please see jGCS home page