add missing error member
pass along the stack property if it exists
add pendantic error tests
Merge pull request #34 from jrgm/apperror

Apperror: add missing error member, and pass along the stack property if it exists