AbstractSamHeaderValidator.onError

Implement those methods to define your own behaviour.

During validation process, in case of an error the corresponding method gets called, and is provided the object where the error occurred, and type of the error. Objects are passed by reference so that they can be changed (fixed / cleaned up / etc.)

'False' return value means to stop further validation checks for the current entity and skip to the next one.

  1. bool onError(SamHeader header, SamHeaderError error)
    class AbstractSamHeaderValidator
    abstract
    bool
    onError
  2. bool onError(SqLine line, SqLineError error)
  3. bool onError(PgLine line, PgLineError error)
  4. bool onError(RgLine line, RgLineError error)

Meta