CICS® Transaction Gateway Programming Reference v1.1.0.0

com.ibm.ctg.client
Class TFileException

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by java.io.IOException
              extended by com.ibm.ctg.client.TFileException
All Implemented Interfaces:
TFileReturnCodes, java.io.Serializable

public class TFileException
extends java.io.IOException
implements TFileReturnCodes

This exception is thrown by the T class when an error occurs.

See Also:
Serialized Form

Field Summary
 
Fields inherited from interface com.ibm.ctg.client.TFileReturnCodes
TFILE_ERR_CHANGE_WHEN_RUNNING, TFILE_ERR_DIRECTORY, TFILE_ERR_INVALID_PATH, TFILE_ERR_PERMISSION_DENIED, TFILE_ERR_UNKNOWN, TFILE_NO_ERROR
 
Constructor Summary
TFileException(int tfileRc)
          Creates a new TFileException with a null message and the specified return code.
TFileException(java.lang.String message, int tfileRc)
          Creates a new TFileException with the specified message and return code.
 
Method Summary
 int getRc()
          Gets the return code indicating the reason the exception was thrown.
 java.lang.String toString()
          Returns a string representation of this exception
 
Methods inherited from class java.lang.Throwable
fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

TFileException

public TFileException(int tfileRc)
Creates a new TFileException with a null message and the specified return code.

Parameters:
tfileRc - The exception return code

TFileException

public TFileException(java.lang.String message,
                      int tfileRc)
Creates a new TFileException with the specified message and return code.

Parameters:
message - The exception message
tfileRc - The exception return code
Method Detail

getRc

public int getRc()
Gets the return code indicating the reason the exception was thrown. Possible return codes are listed in TFileReturnCodes

Returns:
The exception return code

toString

public java.lang.String toString()
Returns a string representation of this exception

Overrides:
toString in class java.lang.Throwable
Returns:
A string containing the exception message and return code

©Copyright IBM Corp. 1994, 2014
Legal