You need to return the exception value rather than undefined.