Updated pattern for constructing exceptions to make it log and response friendly; introduces stack trace