Class SuperCsvCellProcessorException

    • Method Summary

      All Methods Static Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      CellProcessor getProcessor()
      Gets the processor that was executing.
      private static java.lang.String getUnexpectedTypeMessage​(java.lang.Class<?> expectedType, java.lang.Object actualValue)
      Assembles the exception message when the value received by a CellProcessor isn't of the correct type.
      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

      • SuperCsvCellProcessorException

        public SuperCsvCellProcessorException​(java.lang.String msg,
                                              CsvContext context,
                                              CellProcessor processor)
        Constructs a new SuperCsvCellProcessorException.
        Parameters:
        msg - the exception message
        context - the CSV context
        processor - the cell processor that was executing
      • SuperCsvCellProcessorException

        public SuperCsvCellProcessorException​(java.lang.String msg,
                                              CsvContext context,
                                              CellProcessor processor,
                                              java.lang.Throwable t)
        Constructs a new SuperCsvCellProcessorException.
        Parameters:
        msg - the exception message
        context - the CSV context
        processor - the cell processor that was executing
        t - the nested exception
      • SuperCsvCellProcessorException

        public SuperCsvCellProcessorException​(java.lang.Class<?> expectedType,
                                              java.lang.Object actualValue,
                                              CsvContext context,
                                              CellProcessor processor)
        Constructs a new SuperCsvCellProcessorException to indicate that the value received by a CellProcessor wasn't of the correct type.
        Parameters:
        expectedType - the expected type
        actualValue - the value received by the CellProcessor
        context - the CSV context
        processor - the cell processor that was executing
    • Method Detail

      • getUnexpectedTypeMessage

        private static java.lang.String getUnexpectedTypeMessage​(java.lang.Class<?> expectedType,
                                                                 java.lang.Object actualValue)
        Assembles the exception message when the value received by a CellProcessor isn't of the correct type.
        Parameters:
        expectedType - the expected type
        actualValue - the value received by the CellProcessor
        Returns:
        the message
        Throws:
        java.lang.NullPointerException - if expectedType is null
      • getProcessor

        public CellProcessor getProcessor()
        Gets the processor that was executing.
        Returns:
        the processor that was executing
      • toString

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