Class SuperCsvException

All Implemented Interfaces:
Serializable
Direct Known Subclasses:
SuperCsvCellProcessorException, SuperCsvReflectionException

public class SuperCsvException extends RuntimeException
Generic SuperCSV Exception class. It contains the CSV context (line number, column number and raw line) from when the exception occurred.
See Also:
  • Field Details

  • Constructor Details

    • SuperCsvException

      public SuperCsvException(String msg)
      Constructs a new SuperCsvException.
      Parameters:
      msg - the exception message
    • SuperCsvException

      public SuperCsvException(String msg, CsvContext context)
      Constructs a new SuperCsvException.
      Parameters:
      msg - the exception message
      context - the CSV context
    • SuperCsvException

      public SuperCsvException(String msg, CsvContext context, Throwable t)
      Constructs a new SuperCsvException.
      Parameters:
      msg - the exception message
      context - the CSV context
      t - the nested exception
  • Method Details

    • getCsvContext

      public CsvContext getCsvContext()
      Gets the current CSV context.
      Returns:
      the current CSV context, or null if none is available
    • toString

      public String toString()
      Returns the String representation of this exception.
      Overrides:
      toString in class Throwable