Concatenates the stacks of an error object.