CourseOrchestra/celesta

Add readable error code for recVersion inconsistency error

ioanngolovko opened this issue · 1 comments

Add readable error code for recVersion inconsistency error
  1. Create RecversionException extends CelestaException. On DatabaseAdaptor / BasicCursor layer, throw RecversionException when (try)update() cause this error.
  2. In order to better recognize recversion exception from all other database backend problems, introduce ERROR CODE in database trigger layer. Use this ERROR CODE to recognize 'our' exception. WARNING: this requires some research, if ERROR CODE feature is supported in all our DB backends