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.RuntimeExceptionGeneric SuperCSV Exception class. It contains the CSV context (line number, column number and raw line) from when the exception occurred.- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description private CsvContextcsvContextprivate static longserialVersionUID
-
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 CsvContextgetCsvContext()Gets the current CSV context.java.lang.StringtoString()Returns the String representation of this exception.
-
-
-
Field Detail
-
serialVersionUID
private static final long serialVersionUID
- See Also:
- Constant Field Values
-
csvContext
private CsvContext csvContext
-
-
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:
toStringin classjava.lang.Throwable
-
-