Class 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.
      • Methods inherited from class java.lang.Throwable

        addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
    • 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 message
        context - the CSV context
      • SuperCsvException

        public SuperCsvException​(java.lang.String msg,
                                 CsvContext context,
                                 java.lang.Throwable t)
        Constructs a new SuperCsvException.
        Parameters:
        msg - the exception message
        context - the CSV context
        t - 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 class java.lang.Throwable