public String getMessageWithoutLocation() {
        return getMessage().replace(" (" + sourceLocation + ")", "");
    }
Retrieves the message for this exception without the appended source
location.

@return The trimmed message.
smithy-model/src/main/java/software/amazon/smithy/model/SourceException.java