Package org.supercsv.exception
Class SuperCsvException
- java.lang.Object
-
- java.lang.Throwable
-
- java.lang.Exception
-
- java.lang.RuntimeException
-
- org.supercsv.exception.SuperCsvException
-
- All Implemented Interfaces:
java.io.Serializable
- Direct Known Subclasses:
SuperCsvCellProcessorException
,SuperCsvReflectionException
public class SuperCsvException extends java.lang.RuntimeException
Generic SuperCSV Exception class. It contains the CSV context (line number, column number and raw line) from when the exception occurred.- Author:
- Kasper B. Graversen, James Bassett
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description SuperCsvException(java.lang.String msg)
Constructs a new SuperCsvException.SuperCsvException(java.lang.String msg, CsvContext context)
Constructs a new SuperCsvException.SuperCsvException(java.lang.String msg, CsvContext context, java.lang.Throwable t)
Constructs a new SuperCsvException.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description CsvContext
getCsvContext()
Gets the current CSV context.java.lang.String
toString()
Returns the String representation of this exception.
-
-
-
Constructor Detail
-
SuperCsvException
public SuperCsvException(java.lang.String msg)
Constructs a new SuperCsvException.- Parameters:
msg
- the exception message
-
SuperCsvException
public SuperCsvException(java.lang.String msg, CsvContext context)
Constructs a new SuperCsvException.- Parameters:
msg
- the exception messagecontext
- the CSV context
-
SuperCsvException
public SuperCsvException(java.lang.String msg, CsvContext context, java.lang.Throwable t)
Constructs a new SuperCsvException.- Parameters:
msg
- the exception messagecontext
- the CSV contextt
- the nested exception
-
-
Method Detail
-
getCsvContext
public CsvContext getCsvContext()
Gets the current CSV context.- Returns:
- the current CSV context, or null if none is available
-
toString
public java.lang.String toString()
Returns the String representation of this exception.- Overrides:
toString
in classjava.lang.Throwable
-
-