com.bea.connector
Class RecordTranslationException

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by javax.resource.ResourceException
              extended by com.bea.connector.RecordTranslationException
All Implemented Interfaces:
Serializable

public class RecordTranslationException
extends javax.resource.ResourceException

This class extends a ResourceException and encapsulates the input record that caused the exception; of course a ResourceException already allows for a linked exception

See Also:
Serialized Form

Constructor Summary
RecordTranslationException(String reason)
           
RecordTranslationException(String reason, javax.resource.cci.Record badRecord)
           
 
Method Summary
 String getMessage()
           
 javax.resource.cci.Record getRecord()
          get the Record that caused the exception
 void printStackTrace()
           
 void printStackTrace(PrintStream ps)
           
 void printStackTrace(PrintWriter pw)
           
 
Methods inherited from class javax.resource.ResourceException
getErrorCode, getLinkedException, setErrorCode, setLinkedException
 
Methods inherited from class java.lang.Throwable
fillInStackTrace, getCause, getLocalizedMessage, getStackTrace, initCause, setStackTrace, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

RecordTranslationException

public RecordTranslationException(String reason)

RecordTranslationException

public RecordTranslationException(String reason,
                                  javax.resource.cci.Record badRecord)
Method Detail

getMessage

public String getMessage()
Overrides:
getMessage in class javax.resource.ResourceException

getRecord

public javax.resource.cci.Record getRecord()
get the Record that caused the exception

Returns:
the record causing the exception

printStackTrace

public void printStackTrace()
Overrides:
printStackTrace in class Throwable

printStackTrace

public void printStackTrace(PrintStream ps)
Overrides:
printStackTrace in class Throwable

printStackTrace

public void printStackTrace(PrintWriter pw)
Overrides:
printStackTrace in class Throwable