ca.idms.io
Class DataTruncationException

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by java.io.IOException
              extended by ca.idms.io.DataTruncationException
All Implemented Interfaces:
java.io.Serializable
Direct Known Subclasses:
QcliDataTruncation

public class DataTruncationException
extends java.io.IOException

Thrown when data is truncated during conversion.

Version:
1.00, 12/17/99
Author:
Dave Ross
See Also:
Serialized Form

Field Summary
protected  int dataSize
           
protected  int transferSize
           
 
Constructor Summary
DataTruncationException()
          Constructs a new DataTruncationException.
DataTruncationException(int data)
          Constructs a new DataTruncationException.
DataTruncationException(int data, int tran)
          Constructs a new DataTruncationException.
 
Method Summary
 int getDataSize()
          The number of bytes of data that should have been transferred.
 int getTransferSize()
          The number of bytes of data actually transferred.
 java.lang.String toString()
          Overrides base method.
 
Methods inherited from class java.lang.Throwable
fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

dataSize

protected int dataSize

transferSize

protected int transferSize
Constructor Detail

DataTruncationException

public DataTruncationException()
Constructs a new DataTruncationException.


DataTruncationException

public DataTruncationException(int data)
Constructs a new DataTruncationException.

Parameters:
data - number of bytes that should have been transfered.

DataTruncationException

public DataTruncationException(int data,
                               int tran)
Constructs a new DataTruncationException.

Parameters:
data - number of bytes that should have been written.
tran - number of bytes acutally written.
Method Detail

getDataSize

public int getDataSize()
The number of bytes of data that should have been transferred.


getTransferSize

public int getTransferSize()
The number of bytes of data actually transferred.


toString

public java.lang.String toString()
Overrides base method.

Overrides:
toString in class java.lang.Throwable


Copyright © 2009 CA, All rights reserved