ddb difference between local and real in code exceptions