Class NonSingleColumnException

All Implemented Interfaces:
Serializable

public class NonSingleColumnException extends JdbcException
Thrown to indicate that the number of fetched column is expected less than or equal to 1, but actually it is greater than or equal to 2.
See Also:
  • Field Details

    • kind

      protected final SqlKind kind
    • rawSql

      protected final String rawSql
    • formattedSql

      protected final String formattedSql
    • sqlFilePath

      protected final String sqlFilePath
  • Constructor Details

    • NonSingleColumnException

      public NonSingleColumnException(SqlLogType logType, Sql<?> sql)
    • NonSingleColumnException

      public NonSingleColumnException(SqlLogType logType, SqlKind kind, String rawSql, String formattedSql, String sqlFilePath)
  • Method Details

    • getKind

      public SqlKind getKind()
      Returns the SQL kind.
      Returns:
      the SQL kind
    • getRawSql

      public String getRawSql()
      Returns the raw SQL string.
      Returns:
      the raw SQL string
    • getFormattedSql

      public String getFormattedSql()
      Returns the formatted SQL string.
      Returns:
      the formatted SQL string
    • getSqlFilePath

      public String getSqlFilePath()
      Returns the SQL file path
      Returns:
      the SQL file path or null if the SQL is auto generated