org.rimudb.exception
Class DataTruncationException

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by org.rimudb.exception.DataTruncationException
All Implemented Interfaces:
java.io.Serializable

public class DataTruncationException
extends java.lang.Exception

This class represents an exception that is thrown when a data truncation is performed by the database. It improves the message to show the column index that was in error.

Author:
Simon Ritchie
See Also:
Serialized Form

Constructor Summary
DataTruncationException(java.sql.DataTruncation e)
          Construct a DataTruncationException
 
Method Summary
 java.lang.String getMessage()
          Return the message.
 
Methods inherited from class java.lang.Throwable
fillInStackTrace, getCause, getLocalizedMessage, 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

DataTruncationException

public DataTruncationException(java.sql.DataTruncation e)
Construct a DataTruncationException

Parameters:
e - DataTruncation
Method Detail

getMessage

public java.lang.String getMessage()
Return the message.

Overrides:
getMessage in class java.lang.Throwable
Returns:
String


Copyright © 2008-2011 Simon Ritchie. All Rights Reserved.