Class DataImportException

All Implemented Interfaces:
Serializable

public class DataImportException extends RuntimeException
A runtime exception that can be used by all data providers to indicate the exact position of an error during import of data.
Author:
Tobias Liefke
See Also:
  • Constructor Details

    • DataImportException

      public DataImportException(String message)
      Creates a new exception.
      Parameters:
      message - the error message
    • DataImportException

      public DataImportException(String message, String file)
      Creates a new exception.
      Parameters:
      message - the error message
      file - the optional file name that had the error
    • DataImportException

      public DataImportException(String message, String file, int line)
      Creates a new exception.
      Parameters:
      message - the error message
      file - the optional file name that had the error
      line - the optional line that had the error (-1 if unknown)
    • DataImportException

      public DataImportException(String message, String file, int line, int column)
      Creates a new exception.
      Parameters:
      message - the error message
      file - the optional file name that had the error
      line - the optional line that had the error (-1 if unknown)
      column - the optional column that had the error (-1 if unknown)
    • DataImportException

      public DataImportException(String message, String file, int line, int column, Throwable cause)
      Creates a new exception.
      Parameters:
      message - the error message
      file - the optional file name that had the error
      line - the optional line that had the error (-1 if unknown)
      column - the optional column that had the error (-1 if unknown)
      cause - the cause of the error
    • DataImportException

      public DataImportException(String message, String file, int line, Throwable cause)
      Creates a new exception.
      Parameters:
      message - the error message
      file - the optional file name that had the error
      line - the optional line that had the error (-1 if unknown)
      cause - the cause of the error
    • DataImportException

      public DataImportException(String message, String file, Throwable cause)
      Creates a new exception.
      Parameters:
      message - the error message
      file - the optional file name that had the error
      cause - the cause of the error
    • DataImportException

      public DataImportException(String message, Throwable cause)
      Creates a new exception.
      Parameters:
      message - the error message
      cause - the cause of the error
  • Method Details

    • toString

      public String toString()
      Overrides:
      toString in class Throwable
    • getFile

      public String getFile()
      The optional file name that had the error.
    • getLine

      public int getLine()
      The optional line that had the error (-1 if unknown).
    • getColumn

      public int getColumn()
      The optional column that had the error (-1 if unknown).