This exception must be thrown when a call to Session.commit results in a rollback of the current transaction.
Session.commit
Constructs a TransactionRolledBackException with the specified reason and error code.paramreason a description of the exceptionparamerrorCode a string specifying the vendor-specific error code super(reason, errorCode);
TransactionRolledBackException
super(reason, errorCode);
Constructs a TransactionRolledBackException with the specified reason. The error code defaults to null.paramreason a description of the exception super(reason);
super(reason);