Assert that the error a program got carries, or does not carry, a stack trace (trace) or the message of the exception (message). A live app leaves both out; a development run puts them in.
Examples
Then the error answer should not carry a stack trace
And the error answer should not carry the exception message
Then the error answer should carry a stack trace
Then the error answer should carry the exception message
But the error answer should not carry a stack trace
Pattern
Then(/^the error answer should( not)* carry (a stack trace|the exception message)$/, …)
Part of @webship-js/spring-boot-steps (github.com/webship/spring-boot-steps), a step pack for Webship-js 2.0.x.