public String getErrorMessage() {
        return errorMessage;
    }
Gets the associated error message with the token if it's an error.

@return Returns the error message or null if not an error.
smithy-syntax/src/main/java/software/amazon/smithy/syntax/CapturedToken.java