Class CopyErrorTaxonomy

java.lang.Object
dev.frostlake.executor.copy.CopyErrorTaxonomy

public final class CopyErrorTaxonomy extends Object
The category / code / SQLSTATE triple a VALIDATION_MODE = RETURN_ERRORS row carries for one rejected record, live-verified per family: a value that would not convert is conversion / 100038 / 22018; a record whose field count misses the table is parsing / 22000 with code 100080 (short or long record) or 100068 (end of record reached mid-column, the blank-line case); a FILES entry the stage does not hold is other / 100112 / 22000. Families not yet measured ride the conversion triple.
  • Method Details

    • of

      public static CopyErrorTaxonomy of(RuntimeException rowError, String message)
      The triple for a rejected record, chosen by the failure kind.
    • missingFile

      public static CopyErrorTaxonomy missingFile()
      The triple for a FILES = (…) entry the stage does not hold.
    • getCategory

      public String getCategory()
    • getCode

      public int getCode()
    • getSqlState

      public String getSqlState()