Class CSColumnException

All Implemented Interfaces:
Serializable

public class CSColumnException extends CSException
Thrown by the rowValidate method when a non-null column is null or a number column's contents don't match the size of the corresponding database column.

Copyright 2003-2026 ATB Consultancy Services Ltd (formerly Orinda Software Ltd, Dublin, Ireland)

Since:
4.0.1709
Version:
7
Author:
[email protected]
See Also:
  • Field Details

    • NULL_NOT_ALLOWED_HERE

      public static final int NULL_NOT_ALLOWED_HERE
      Constant to indicate column should not be null or a zero length string.
      See Also:
    • COLUMN_LENGTH_EXCEEDED

      public static final int COLUMN_LENGTH_EXCEEDED
      Constant to indicate String is to long or a number has too many digits to the left of the decimal point.
      See Also:
    • DECIMAL_PLACES_EXCEEDED

      public static final int DECIMAL_PLACES_EXCEEDED
      Constant to indicate column is a number that has too many digits to the left of the decimal point.
      See Also:
    • tableName

      public String tableName
      Table name
    • columnName

      public String columnName
      Column name
    • exceptionType

      public int exceptionType
      What kind of CSColumnException this is - one of NULL_NOT_ALLOWED_HERE, COLUMN_LENGTH_EXCEEDED or DECIMAL_PLACES_EXCEEDED
    • theValue

      public Object theValue
      The value in question
    • allowsNulls

      public boolean allowsNulls
      Whether null is allowed
    • length

      public int length
      How long a String is or how many digits a number has to the left of the decimal point.
    • decimalPlaces

      public int decimalPlaces
      How many digits a number has to the right of the decimal point. Note that in Oracle this can be a negative number. For example: NUMBER(4,0) is 4 digits, no decimal places e.g. 2004 NUMBER(6,2) is 4 digits, a decimal point and then 2 digits e.g. 7665.43 NUMBER(7,-3) is 4 digits and then 3 zeros e.g. 9,456,000
    • theApplicationComment

      public String theApplicationComment
      An optional comment
  • Constructor Details

    • CSColumnException

      public CSColumnException(String tableName, String columnName, int exceptionType, Object theValue, boolean allowsNulls, int length, int decimalPlaces, String theApplicationComment)
      Contructor with parameters
      Parameters:
      tableName -
      columnName -
      exceptionType -
      theValue -
      allowsNulls -
      length -
      decimalPlaces -
      theApplicationComment -
  • Method Details

    • toString

      public String toString()
      Return a String representation of this exception
      Overrides:
      toString in class Throwable