'Roll back the current transaction and raise an error
@param message: error message
@param error: exception class to raise'

@staticmethod
def raise_error(msg, error=RuntimeError):

    current.db.rollback()
    raise error(msg)
