com.univocity.parsers.common
Class TextWritingException

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by java.lang.RuntimeException
              extended by com.univocity.parsers.common.TextWritingException
All Implemented Interfaces:
Serializable

public class TextWritingException
extends RuntimeException

Exception type used provide information about any issue that might happen while writing to a given output.

It generally provides location and data information in case of a writing failure.

Author:
uniVocity Software Pty Ltd - [email protected]
See Also:
Serialized Form

Constructor Summary
TextWritingException(String message)
           
TextWritingException(String message, int line, Object[] row)
           
TextWritingException(String message, int recordCount, Object[] row, Throwable cause)
           
TextWritingException(String message, int line, String recordCharacters)
           
TextWritingException(String message, int recordCount, String recordCharacters, Throwable cause)
           
TextWritingException(Throwable cause)
           
 
Method Summary
 String getMessage()
           
 String getRecordCharacters()
          Returns the character data that failed to be written
 int getRecordCount()
          Returns the number of records written before the exception occurred.
 Object[] getRecordData()
          Returns the data that failed to be written
 
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

TextWritingException

public TextWritingException(String message,
                            int recordCount,
                            String recordCharacters,
                            Throwable cause)

TextWritingException

public TextWritingException(String message,
                            int recordCount,
                            Object[] row,
                            Throwable cause)

TextWritingException

public TextWritingException(String message)

TextWritingException

public TextWritingException(Throwable cause)

TextWritingException

public TextWritingException(String message,
                            int line,
                            Object[] row)

TextWritingException

public TextWritingException(String message,
                            int line,
                            String recordCharacters)
Method Detail

getMessage

public String getMessage()
Overrides:
getMessage in class Throwable

getRecordCount

public int getRecordCount()
Returns the number of records written before the exception occurred.

Returns:
the number of records written before the exception occurred.

getRecordData

public Object[] getRecordData()
Returns the data that failed to be written

Returns:
the data that failed to be written

getRecordCharacters

public String getRecordCharacters()
Returns the character data that failed to be written

Returns:
the character data that failed to be written


Copyright © 2014 uniVocity Software Pty Ltd. All rights reserved.